Rotation Q
Posted: Sat May 05, 2018 2:34 pm
I'm doing a top-down shooter game, in the Asteroid vein.
I'm quite the newbie for Love2d.
I'm having a bit of trouble with rotation ... my high-school trig knowledge has atrophied.
What's gotten me is that although we're working in radians, it seems backwards. As the number increases towards 2*PI, it rotates my object CLOCKWISE when it should be counter-clockwise as I understand Radians.
Is it a fair statement that this is due to the world be rotated 180 degrees, so that origin is the upper left (not lower left) BUT I can't quite figure out how that affects clockwise vs. counter-clockwise. Or am I interpreting love.graphics.draw() incorrectly?
I'm quite the newbie for Love2d.
I'm having a bit of trouble with rotation ... my high-school trig knowledge has atrophied.
What's gotten me is that although we're working in radians, it seems backwards. As the number increases towards 2*PI, it rotates my object CLOCKWISE when it should be counter-clockwise as I understand Radians.
Is it a fair statement that this is due to the world be rotated 180 degrees, so that origin is the upper left (not lower left) BUT I can't quite figure out how that affects clockwise vs. counter-clockwise. Or am I interpreting love.graphics.draw() incorrectly?