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/BSV...
Question? Leave a comment below, or ask me on Twitter: / vinobs
Негізгі бет Math for Game Developers - Rotating Characters (Matrix Rotation)
Пікірлер: 18