[name]

A helper object to show the world-axis-aligned bounding box for an object.

Example

var dir = new THREE.Vector3( 1, 0, 0 ); var origin = new THREE.Vector3( 0, 0, 0 ); var length = 1; var hex = 0xffff00; var arrowHelper = new THREE.ArrowHelper( dir, origin, length, hex ); scene.add( arrowHelper );

Constructor

[name]([page:Object3D object], [page:Number hex])

object -- Object3D -- the object3D to show the world-axis-aligned boundingbox.
hex -- hexadecimal value to define color ex:0x888888
This creates an line object to the boundingbox.

Properties

.[page:Object3D object]

Contains the object3D to show the world-axis-aligned boundingbox.

.[page:Box3 box]

Contains the bounding box of the object.

Methods

.update()

Updates the BoundingBoxHelper based on the object property.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]