Translating mouse position onto a plane

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Please login to see this picture.
    (The circle is actual mouse position, the red/green shape is the Mouse Pick X/Y/Z position)

    I'm trying to translate mouse coordinates to 3D coordinates by using a plane. As far as I know the only way to do mouse-firefly -interaction is via collisions and Mouse Pick. However, since Mouse Pick is essentially raycasting, the coordinates it returns aren't positioned at the mouse, but rather on some other point that is between the point the Mouse Pick tests and the camera. Changing the Y position of the colliding plane doesn't seem to help; the Mouse Pick test point moves "downwards" accordingly as far as I can see. I can't apply an offset to the values I get, either, because the offset between the actual Mouse Y and Mouse Pick Z position changes based on depth.

    So; how would I translate the mouse X/Y to Firefly X/Y/Z more accurately?

  • well i wasnt sure but i got weird results with the mousepick so i added a offset as you had a -minus offset i thought you may have the solution but.....

    Please login to see this link.

    Clickteam on Please login to see this link. - Clickteam on Please login to see this link. - Clickteam on Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!