Capítulo 319 de 859
A helper object to visualize an instance of Box3.
const box = new THREE.Box3();
box.setFromCenterAndSize( new THREE.Vector3( 1, 1, 1 ), new THREE.Vector3( 2, 1, 3 ) );
const helper = new THREE.Box3Helper( box, 0xffff00 );
scene.add( helper )
Constructor
| Signature |
|---|
| `new Box3Helper( box : Box3, color : number |
Properties
| Property | Description |
|---|---|
.box : Box3 | The box being visualized. |
Methods
| Method | Description |
|---|---|
.dispose() | Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app. |