Add PointerLockControls
Myrmod opened this issue · 2 comments
Hello,
I am trying to add PointerLockControls
, but somehow they're not working:
What I want to be able to do is essentially this, the corresponding code can be found here
For the movement via KeyBoardEvent
I am not sure if it's best to add them directly into the PointerLockControls
or inside of another function/component. If I get this to work I would like to open up a pull request. :)
Any suggestions?
I've done a similar thing before if you'd like to have a quick look over that source.
Something else that might be helpful is this video about finite state machines but that depends on where your going with your work.
Another suggestion would be the good old console.log()
ing a bunch of things or add eventlisteners to try and pin point what might not be working
Thank you for the hint. I created a basic implementation of the afforementioned controls and set up a pull request. The movement feature will be a separate issue I think, because not everyone needs it, if they're using the PointerLockControls
. For something like a rollercoaster it would be not required.
:)