light-3d.entity overview
Table of contents
utils
Light3dEntity (class)
A positioned entity wrapping a light component (VTypeDoc['light'], see ILight3dComponent),
created by Gg3dWorld.addLight or the "Light" level-JSON class, or by hand from
visualScene.factory.createLight(...). Addressable in the world/entity trees like any other
entity, and removing it removes the light from the scene.
Signature
export declare class Light3dEntity<VTypeDoc> {
constructor(public readonly light: VTypeDoc['light'])
}
lookAt (method)
Rotates the light so it shines from its current position towards target - what DIRECTIONAL
and SPOT lights normally want. Call it again after moving the light to keep it aimed.
Signature
lookAt(target: Point3): void
tickOrder (property)
Signature
readonly tickOrder: TickOrder.OBJECTS_BINDING