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.

Camera to Move to Mouse Cursor location

Home Forums Puzzles Camera to Move to Mouse Cursor location

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14438
    p413xp413
    Participant

    Hi,
    Just joined the community and am trying to do a project similliar to this http://interview.ueno.co/ using verge3D.

    I know there is a getEventProperty puzzle, where if I’m not mistaken, it gets the x mouse coordinates. Is there a puzzle i can use to translate the x-position to camera rotation?

    Thanks so much!

    Niruban | P413
    Artist. Always Learning.
    Used to be an accountant.

    #14450

    Hi,

    you can probably use the get camera direction puzzle with from mouse/touch to retrieve the camera-to-cursor ray. Then you can update the camera by moving an empty/dummy object to which it may be constrained (see the example by the link above)

    Chief 3D Verger | LinkedIn | Twitter

    #15030
    Anonymous
    Inactive

    Hammer! Wonderful Project.

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