Advertisement
yskang

threejs-minecraft-25

Apr 21st, 2020
576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const rayHelper = new RayHelper();  //!<<< Add this line
  2.  
  3. renderer.domElement.addEventListener( 'dblclick', function( event ) {
  4.  
  5.     rayHelper.detach( scene );    //!<<< Add this line
  6.  
  7.     // ... other code snippet
  8.  
  9.     rayHelper.attach( raycaster, scene );   //!<<< Add this line
  10.  
  11.     // ... other code snippet
  12.  
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement