Timeline for How do I rotate a sprite around a pivot point using SDL_gfx's rotozoomSurface?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 14, 2020 at 17:26 | history | edited | Vaillancourt♦ | CC BY-SA 4.0 |
Improved the title.
|
Mar 3, 2012 at 19:40 | vote | accept | erik | ||
Jan 5, 2012 at 19:41 | comment | added | erik | Yea, that's a good point. Honestly been forever since I've had to use this kind of math and its a wakeup call to how much I've forgotten over time. | |
Jan 5, 2012 at 11:38 | comment | added | Sean Middleditch | You should look up some basic 2D linear algebra texts. The answer you figured out on your own is the basic principle of needing to translate your coordinate system to the appropriate origin before rotation. Graphics tutorials often cover this topic as well, so those may be a good place to look for a good linear algebra introduction. Sorry that I don't have a good link on hand to give you, but Google should find you some useful material. | |
Jan 5, 2012 at 2:42 | answer | added | erik | timeline score: 1 | |
Jan 4, 2012 at 22:27 | history | asked | erik | CC BY-SA 3.0 |