[page:Object3D] →
[name]
This displays a cone shaped helper object for a [page:SpotLight].
Example
View in Examples
Other Examples
[example:webgl_lights_spotlights lights / spotlights ]
Code Example
var spotLight = new THREE.SpotLight( 0xffffff );
spotLight.position.set( 10, 10, 10 );
scene.add( spotLight );
var spotLightHelper = new THREE.SpotLightHelper( spotLight );
scene.add( spotLightHelper );
Constructor
[name]([page:SpotLight light])
light -- The [page:SpotLight] to be visualized.
Properties
See the base [page:Object3D] class for common properties.
[property:LineSegments cone]
[page:LineSegments] used to visualize the light.
[property:SpotLight light]
Reference to the [page:SpotLight] being visualized.
[property:object matrix]
Reference to the spotLight's [page:Object3D.matrixWorld matrixWorld].
[property:object matrixAutoUpdate]
See [page:Object3D.matrixAutoUpdate]. Set to *false* here as the helper is using the
spotLight's [page:Object3D.matrixWorld matrixWorld].
Methods
See the base [page:Object3D] class for common methods.
[method:null update]()
Disposes of the light helper.
[method:null update]()
Updates the light helper.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]