Jump to content

Pointer Lock with Babylon engine.isPointerLock


Myjestic
 Share

Recommended Posts

Hi,

I try to lock the pointer without the PointerLock API. I want to do it with "engine.isPointerLock".

I have created a PG https://playground.babylonjs.com/#MVQB59.

If you press "Q" the camera will turn in the direction of the mouse movement.

Now the questions.

1) How can I fix the Pointer arrow in the center of the scene after pressing "Q"?

2) Is it possible to hide the standard cursor after pressing "Q"?

I would really appreciate your help.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...