0
\$\begingroup\$

I have a game where there is a set of tiles rotated 45° away from the camera. I want to work out what tile is being hovered over by the mouse, and for that I need to translate the mouse pos on the screen into the position on the plane rotated 45° away. How can I do this? Is there an easy way of doing this without using (expensive) 3D transformation?

Thanks in advance.

\$\endgroup\$
  • \$\begingroup\$ Is the projection orthographic or perspective? \$\endgroup\$ – Turms May 23 at 12:37
  • \$\begingroup\$ Perspective, but I can change if it makes it super hard @Turms \$\endgroup\$ – Jachdich May 23 at 12:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.