Hi,
I’m working on a top-down space shooter with a rocket (imagine a triangle). I have problems with sprite, maybe scene, orientation.
The sprite (rocket) is supposed to be pointing up when idle or on start, but otherwise be oriented towards the mouse pointer. But when I use LookAt() with what is returned from GetViewport().GetMousePosition() the sprite is rotated for about 90 degrees less that what I expect it to be. For example if cursor is above the sprite, rocket points to the left (9 o’clock), the rocket points up when cursor is at its right side.
The Rotation += NinetyDegrees kinda solves the problem because sprite is then correctly oriented relative to mouse cursor, but it then also idles pointing to the right (3 o’clock).