Components inherit from THREE.Object3D
-
Components now inherit from
THREE.Object3D
, so you can now use your UI components exactly like you are used to :
Block.position.set( 0, 1.6, 0 )
Block.rotation.x = Math.PI / 5
Block.visible = false
Block.traverse( function )
raycaster.intersectObject( Block )
-
Update
VRControl.js
, so that raycasting is done in the examples -
Update the buttons example raycasting accordingly.
-
Update all the examples, so that the root
Block
is added to theScene
directly, without aTHREE.Group
container