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.

What’s the best method to “look at” my mouse cursor?

Home Forums Puzzles What’s the best method to “look at” my mouse cursor?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #51219
    coozoh
    Customer

    Hi, quite new to Verge3D so apologies if this has already been answered. I’m looking for the best solution for getting my objects to look at where my cursor is, so when i move my mouse to the left the objects rotate to the left, etc. Essentially something like the example below. What’s the best method of achieving this?

    https://superlist.com/

    Thanks!

    #51222
    xeon
    Customer

    The question you seem to be asking is different than the example. The example is animation triggered by mouse scroll. If this is what you are looking for take a look a the Swiss Army knife demo in the app manager

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #51224
    coozoh
    Customer

    Not quite, it was moreso the first animation that gets loaded as screenshotted. The items in the scene point slightly towards the mouse when ever it is moved in any direction?

    Attachments:
    You must be logged in to view attached files.
    #51226
    xeon
    Customer

    Lots of options to achieve that subtle movement.

    You can add a track to or look at constraint. You could use orbit constrained to amount of rotation and eliminate it at a scroll distance. You can specify object rotation based on mouse mouse or touch location. Sure the are other options too.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #51284
    coozoh
    Customer

    Thanks for your response! How would I go about getting a variable for the mouse position, I guess I would have to get its x and y position from the percentage page width or some other way?

    #51290
    xeon
    Customer

    You may want to try the following:

    https://www.soft8soft.com/docs/manual/en/puzzles/Camera.html#get_camera_direction

    It gives the puzzles for how an option tracks mouse movements.

    For more custom solutions you may want to look at:

    https://www.soft8soft.com/docs/api/en/core/Raycaster.html

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

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