Advanced C++/Graphics Tutorial 39: 2D Rotations! @makinggameswithben
Advanced C++/Graphics Tutorial 39: 2D Rotations!  @makinggameswithben
Uploaded December 2014 | Updated September 2026, 3 weeks ago
Today we allow sprite rotations with some simple math! Don't forget to grab the textures with the code in the link below!

Textures and Source Code: dropbox.com/s/23b0q6bqydg38yc/BenGraphicsTut39.zip?dl=0

Explanation of the math:
2D Rotations: siggraph.org/education/materials/HyperGraph/modeling/mod_tran/2drota.htm
Angle between two vectors:
euclideanspace.com/maths/algebra/vectors/angleBetween

Donate Via Paypal: goo.gl/ifsOMt

Twitter: twitter.com/ChillstepCoder
Seed Of Andromeda Channel: youtube.com/user/DubstepCoder
Seed Of Andromeda Website: seedofandromeda.com
Advanced C++/Graphics Tutorial 39: 2D Rotations!C++/Game Tutorial 15: Checkerboard With 2D Array And Modulus!Advanced C++/Graphics Tutorial 40: BallGame, Variadic Macros, SRPC++/Game Tutorial 5: if/elseAdvanced C++/Graphics Tutorial 3: Input Processing!Advanced C++/Graphics Tutorial 32: SDL_ttf, SpriteFont!C++/Game Tutorial 25: Pointer Basics!C++/Game Tutorial 40: AI for Tic-Tac-Toe with Minimax AlgorithmAdvanced C++/Graphics Tutorial 23: InputManager, Timing.h, unordered_mapC++/Game Tutorial 19: File IO and Advanced Input!Advanced C++/Graphics Tutorial 0: Installing SDL!Advanced C++/Graphics Tutorial 15: ResourceManager, TextureCache!
MakingGamesWithBen |

Advanced C++/Graphics Tutorial 39: 2D Rotations!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER