zeamays Posted May 12, 2017 Share Posted May 12, 2017 Hello everyone! I'm new with babylon.js and now I'm trying to make a third person shooter game. The idea is to make an ArcRotateCamera that is able to perform unlimited alpha rotation. However, I'm struggling with the mouse cursor as it has a limited movement (that is the border of the browser), making an unlimited alpha rotation impossible. Is there any way to make it possible? Thank you in advance Quote Link to comment Share on other sites More sharing options...
Jaskar Posted May 16, 2017 Share Posted May 16, 2017 Hi zeamays, You want unlimited rotation like in this page ? http://www.jaskar.host-ed.me/BabyksCube/ Then use : camera.lowerAlphaLimit = null; camera.upperAlphaLimit = null; For the mouse cursor, you can use : requestPointerLock Be sure to call the webkit, moz and other versions! It will hide the mouse cursor, so take care to display a reticle or something like this at the screen center, and exit the state en "Esc" key press Another question ? If it's okay, remind to mark the topic as solved. Quote Link to comment Share on other sites More sharing options...
zeamays Posted May 19, 2017 Author Share Posted May 19, 2017 Thanks for the reply Jaskar! requestPointerLock is exactly what I need! 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.