Skip to content

Components inherit from THREE.Object3D

Compare
Choose a tag to compare
@felixmariotto felixmariotto released this 21 May 17:33
· 724 commits to master since this release
  • 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 the Scene directly, without a THREE.Group container

v2.0.0...v2.1.0