karpo Posted January 3, 2014 Share Posted January 3, 2014 Hi - again, Any tips on how should I change the default behavior of FreeCamera to make it more FPS like. By this I mean: mouse down not required to rotate. This would probably cause some usability challenges in browser environment but maybe allow user to go full screen mode (how to do this?) would help. Thanks in advance for the replies and once again good job on making BJS fun! -Karpo Quote Link to comment Share on other sites More sharing options...
davrous Posted January 3, 2014 Share Posted January 3, 2014 Hi karpo, 2 options: 1 - Modify yourself the code of Babylon.FreeCamera.js 2 - Override the default behavior of the FreeCamera. You'll an example in my following article: http://blogs.msdn.com/b/davrous/archive/2013/11/19/using-webgl-to-create-games-for-the-windows-store.aspx where I'm taking the FreeCamera as the base prototype to build a special camera for the Xbox controller.Bye,David GameMonetize, ProfessorF and karpo 3 Quote Link to comment Share on other sites More sharing options...
karpo Posted January 3, 2014 Author Share Posted January 3, 2014 Hi. I simply changed engine.isPointerLock into 'true' and pretty much got what I was looking for. I see the engine having a method switchFullscreen(). I guess this is for asking the browser to go into fullscreen. I couldn't quite figure out what to give it as a parameter - didn't work just by calling engine.switchFullscreen(). 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.