mojojojo Posted May 19, 2016 Share Posted May 19, 2016 Hi, which is the active camera input during pointer lock for the arc rotate camera? Thanks! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 19, 2016 Share Posted May 19, 2016 Hello, scene.activeCamera is still the active camera Quote Link to comment Share on other sites More sharing options...
mojojojo Posted May 19, 2016 Author Share Posted May 19, 2016 Hi! I'm looking at ArcRotateCameraInputsManager - the input responsible for the pointer - ArcRotateCameraPointersInput seems not to handle the pointer lock case. I couldn't find the code that controls the camera when in pointer lock. In other words - if I want to build have custom controls when in pointer lock, what should I do? Cheers Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 19, 2016 Share Posted May 19, 2016 This is the input responsible for pointer (touch + mouse): https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/Inputs/babylon.arcrotatecamera.input.pointers.ts If you lock the pointer on the canvas it should work directly 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.