Advertisement
yskang

threejs-viewer-7

May 6th, 2020
998
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Add navigation tool
  2. const navigation = new THREE.OrbitControls( camera, renderer.domElement );
  3. navigation.maxPolarAngle = Math.PI * 0.52;
  4. navigation.minDistance = 1;
  5. navigation.maxDistance = 1000;
  6. navigation.enableDamping = true;
  7. navigation.enableKeys = true;
  8. navigation.screenSpacePanning = true;
  9. navigation.zoomSpeed = 0.4;
  10. navigation.target = new THREE.Vector3( 0, 0, 0 );
  11. this.navigation = navigation;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement