Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Add navigation tool
- const navigation = new THREE.OrbitControls( camera, renderer.domElement );
- navigation.maxPolarAngle = Math.PI * 0.52;
- navigation.minDistance = 1;
- navigation.maxDistance = 1000;
- navigation.enableDamping = true;
- navigation.enableKeys = true;
- navigation.screenSpacePanning = true;
- navigation.zoomSpeed = 0.4;
- navigation.target = new THREE.Vector3( 0, 0, 0 );
- this.navigation = navigation;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement