luka_friend Posted November 18, 2014 Share Posted November 18, 2014 Hello!Recently I have found out about Babylon js, and I have been pretty satisfied with it's simplicity once I started using this framework. But I have also encountered some problems.When I try to move my ArcRotateCamera around 3D object, I get weird animation when rotating. For example: when i press left mouse button and quickly drag away, my camera still rotates (for second or less) after I have released my mouse button.I belive this is meant for games to have smoother camera rotation. But what if i want my camera to immediately stop after i release mouse button? How can I stop my camera animation? I don't need Babylon js for games, I need it to display some construction objects and then edit their positions via mouse. This animation just makes moving objects with my mouse much harder. Any idea? SHORT STORY: I dont want smooth slowing camera rotation -> I want to stop it immediately after releasing mouse button! Quote Link to comment Share on other sites More sharing options...
Samuel Girardin Posted November 18, 2014 Share Posted November 18, 2014 Hi, You should try yourCamera.inertia = 0 ; Shine 1 Quote Link to comment Share on other sites More sharing options...
luka_friend Posted November 20, 2014 Author Share Posted November 20, 2014 Thank you so much. camera.inertia=0; really helped! 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.