Hi,
in Monkey 1 I could transform mouse coordinates into local space of an image like this:
|
|
[crayon-5cb9e27a7193e656215093 inline="true" ] Local mx:Float = MouseX() Local my:Float = MouseY() Scale( 1.0/scaleRatio, 1.0/scaleRatio ) Transform( m[0], m[1], m[2], m[3], m[4], m[5] ) Local coords:Float[] = InvTransform( [ mx, my ] ) Local tmx:Float = coords[0] Local tmy:Float = coords[1] |
[/crayon]
where “m” is a matrix which I got with GetMatrix() during drawing that rotated image (in a PushMatrix() / PopMatrix())
How can I achieve that in Monkey 2? Thanks