Pavol Hejný Posted September 18, 2016 Share Posted September 18, 2016 Hello, When I am using free camera and attached controls, camera is falling only for about 1 second and than stops. I have to press control key to begin falling again. Can increase this duration or give camera instruction to fall (something like moveWithCollisions )? http://www.babylonjs-playground.com/#21AD8N Thanks! Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 19, 2016 Share Posted September 19, 2016 It's time for : The daily hack!! http://www.babylonjs-playground.com/#21AD8N#1 Internally, the camera direction is using o check if the camera should be moving or not. when the camer moves, it checks if it should "fall" down. so this hack keeps the camera from "stopping", hence - falling all the time. A different approach ( a better approach IMHO) - attach the camera to a physics object and enjoy the benefits of a physics engine. Pavol Hejný and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
Pavol Hejný Posted September 19, 2016 Author Share Posted September 19, 2016 Thanks a lot,That is exactly what I needed! 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.