SpongyBacon Posted July 9, 2014 Share Posted July 9, 2014 Hi, is there any way to remove the need to click in order to rotate the FreeCamera?Thanks :3 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 9, 2014 Share Posted July 9, 2014 Hello and welcome! set engine.isPointerLock to true Quote Link to comment Share on other sites More sharing options...
SpongyBacon Posted July 10, 2014 Author Share Posted July 10, 2014 Hello and welcome! set engine.isPointerLock to true I did this:canvas.addEventListener("click", function() { engine.isPointerLock(true);});But it didn't change anything. Any idea why? Quote Link to comment Share on other sites More sharing options...
Temechon Posted July 10, 2014 Share Posted July 10, 2014 Try this : engine.isPointerLock = true; Cheers, SpongyBacon 1 Quote Link to comment Share on other sites More sharing options...
SpongyBacon Posted July 10, 2014 Author Share Posted July 10, 2014 Try this : engine.isPointerLock = true; Cheers, Ah thanks alot, i'm new to javascript (good at java) so I thought it had to have brackets Quote Link to comment Share on other sites More sharing options...
Temechon Posted July 10, 2014 Share Posted July 10, 2014 All members (in the right column in the doc) does not need any brackets. Only the methods does. Good luck with your project 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.