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.

Question about FirstPersonControls

Home Forums General Questions Question about FirstPersonControls

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #71954
    muhuzhongxun
    Participant

    How can the FirstPersonControls enable interaction with “when click/hover/drag” puzzles in the center of the screen and other objects after locking the mouse pointer at any position within the canvas? :unsure:

    Help me, please. Translation :yahoo:

    • This topic was modified 7 months, 1 week ago by muhuzhongxun. Reason: update video
    • This topic was modified 7 months, 1 week ago by muhuzhongxun. Reason: update video zip
    • This topic was modified 7 months, 1 week ago by muhuzhongxun. Reason: update jpg
    Attachments:
    You must be logged in to view attached files.
    #71976
    muhuzhongxun
    Participant

    How can I make the mouse pointer be considered at the position of viewhalfX, viewhalfY when initiating pointer lock from any click location? And when exiting pointer lock, how can I display the cursor at the position of viewhalfX, viewhalfY?

    #71977
    kdv
    Participant

    You can’t control the pointer with JS, it”s not allowed. Use raycacting from the scene’s camera to do the job.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.