Demian Posted July 28, 2016 Share Posted July 28, 2016 Hi everyone! I'm curious to know about the FreeCameraMouseInput. I have tried to find something in Google, but it gives me only 5 answers: to the GitHub and to the doc.babylonjs.com. Is there any tutorial or perhaps someone can write here how to work with it in few words? I've studied example http://www.pixelcodr.com/tutos/shooter/shooter.html, and there 'babylon.1.14-beta-debug.js' was used. So 'FreeCamera' class can lock the pointer and also rotate camera after the mouse. That is why author Julian Temechon said nothing about rotation. But in 'babylon.2.4.max.js' class 'FreeCamera' can't rotate camera. And 'FreeCameraMouseInput' can. So, that's why I'm interested in it. I don't know how to include it in my programm and how to work with it, different errors occur. Quote Link to comment Share on other sites More sharing options...
smatt Posted July 28, 2016 Share Posted July 28, 2016 Hello Demian, a simple approach for locking pointer and rotating camera:http://babylonjs-playground.com/#MATV1 (Click on canvas to lock pointer) Hope this helps, Simon Demian and Boz 2 Quote Link to comment Share on other sites More sharing options...
Demian Posted July 29, 2016 Author Share Posted July 29, 2016 smatt, thanks alot! This is exactly what I need Quote Link to comment Share on other sites More sharing options...
Nabroski Posted July 29, 2016 Share Posted July 29, 2016 I posted befor an wrong info about engine.isPointerLock so i edited the post to something usefullhttps://doc.babylonjs.com/tutorials/Layermasks_and_Multi-cam_Textures Demian 1 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.