sparkbuzz Posted July 10, 2015 Share Posted July 10, 2015 I've managed to turn off inertia on the ArcRotateCamera by setting it up as follows:var camera:BABYLON.ArcRotateCamera = new BABYLON.ArcRotateCamera( 'main_camera', Math.PI / 4, Math.PI * 0.3, 20, BABYLON.Vector3.Zero(), this.scene);camera.attachControl(canvas, true);camera.inertia = 0;camera.angularSensibility = 250;but I can't seem to turn off inertia for zooming. Is there a way to turn off inertia entirely for zooming? Quote Link to comment Share on other sites More sharing options...
Temechon Posted July 11, 2015 Share Posted July 11, 2015 It seems to work for zooming too: http://www.babylonjs-playground.com/#29QAGG In the source code, the zoom inertia is the camera inertia: https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/babylon.arcRotateCamera.ts#L403 Quote Link to comment Share on other sites More sharing options...
sparkbuzz Posted July 11, 2015 Author Share Posted July 11, 2015 You know what, you're right, I'm being foolish. I'm using a magic mouse and what I thought to be inertia was actually to do with the Mac MagicMouse that keeps scrolling with inertia if you flick your finger over the mouse. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.