tOkeshu Posted December 28, 2014 Share Posted December 28, 2014 Hi everyone, I am experimenting with Babylon.js to implement a FPS prototype and I'm quite happy with it so far I try to implement a "jump" feature with the camera via an animation and collisions. The animation seems to work well, but after that I can't move the camera anymore.You can see the problem via the playground (use arrows to move around, the mouse to rotate the camera and Enter to trigger the jump animation). Can anyone tell me what's going on and how I can fix this? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 28, 2014 Share Posted December 28, 2014 Hello and welcome! This is because your animation is looping. You should just use: scene.beginAnimation(camera, 0, 30, false); Quote Link to comment Share on other sites More sharing options...
tOkeshu Posted December 28, 2014 Author Share Posted December 28, 2014 Oh thank you, it makes sense now 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.