Advertisement
julong

GripHelper

Jul 25th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. var gridXZ = new THREE.GridHelper(100, 1);
  2. gridXZ.position.set(10,0,10);
  3. scene.add(gridXZ);
  4.  
  5. //grid xy
  6. var gridXY = new THREE.GridHelper(5, 1);
  7. gridXY.rotation.x = Math.PI/2;
  8. gridXY.position.set(5,5,0);
  9. gridXY.setColors( new THREE.Color(0xff0000), new THREE.Color(0xffffff) );
  10. scene.add(gridXY);
  11.  
  12. //grid yz
  13. var gridYZ = new THREE.GridHelper(2, 0.5);
  14. gridYZ.position.set( 0,2,2 );
  15. gridYZ.rotation.z = Math.PI/2;
  16. gridYZ.setColors( new THREE.Color(0xffffff), new THREE.Color(0x00ff00) );
  17. scene.add(gridYZ);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement