We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Implementing Pointer Lock

Home Forums Programming Implementing Pointer Lock

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #42432
    shantiscript
    Customer

    Hi all,
    i am trying to implement pointerlock to move a first person camera based on this example:

    https://github.com/Soft8Soft/verge3d-code-examples/blob/master/misc_controls_pointerlock.html

    I got it to work based on this post

    How to use PointerLock correctly for a first-person camera

    using setObjectTransform to move the camera but it doesn’t work well enough as there is no smoothing applied to the camera motion.

    But trying to use the pointer lock example the camera just shakes but doesn’t move.

    Is there a working example somewhere that integrates it into verge3D using the default verge3d setup (not the bar bones setup from scratch like in the github example).

    Or is there another way to do this thats already implemented that i am maybe not aware of?

    Regards
    Sebastian

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.