Is it possible to find the mouseX and mouseY with relation to the current matrix?

edited February 2016 in How To...

From what I can tell, mouseX and mouseY always are set off of the default matrix, with the origin at the top left. I am rotating and translating the grid, is there any way to make the mouse locations be related to that?

Answers

  • in 3D or 2D?

  • not sure what you mean but maybe look at screenX and screenY or even modelX and modelY iirc

  • edited February 2016

    2D, screenX might be what I'm looking for. I am moving the origin around, and rotating the matrix. The mouseX and mouseY locations are based off of the original starting matrix, so it is hard to find where they are in relation to my current rotated matrix.

    Another way to say this: is there any way to find the actual location of an object in 2D, not based on the rotated/translated matrix, but based off of the original one?

Sign In or Register to comment.