Math for Game Developers - Rotating Characters (Matrix Rotation) @JorgeVinoRodriguez
Math for Game Developers - Rotating Characters (Matrix Rotation)  @JorgeVinoRodriguez
Uploaded May 2013 | Updated November 2026, 3 hours ago
NOTE: I make an error while drawing the diagrams around the 4:00 mark, I accidentally switch to left-handed coordinates. To get counter-clockwise spinning, you need to flip the signs on the sin(theta) entries of the matrix. Lesson learned: Pay attention to whether you're in left or right handed coordinates when doing this sort of thing.

Rotating our basis vectors makes a rotation matrix that we can use to rotate the enemies when they're shot.

Find the source code here: github.com/BSVino/MathForGameDevelopers/tree/matrix-rotate

Question? Leave a comment below, or ask me on Twitter: twitter.com/VinoBS
Math for Game Developers - Rotating Characters (Matrix Rotation)Math for Game Developers - Caustics (Bisection Method)Math for Game Developers - Faster Matrix InversionsMath for Game Developers - Integrals and DerivativesMath for Game Developers - Prop Positioning (TRS Matrices)Math for Game Developers - Framing All Entities In A SceneProgramming and Math - Stream Oct 25 2016#ROCKTOBER DAY 21#ROCKTOBER DAY 18Math for Game Developers - Character Movement 8 (Matrices)#ROCKTOBER DAY 23How To Get A Job In Game Design - Part 4 - Cover Letters and Portfolios
Jorge Rodriguez |

Math for Game Developers - Rotating Characters (Matrix Rotation)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER