Line Matrix Rotation?
spin = 10;// ten degreees of rotation
dir.y = float(cos(spin) - sin(spin));
dir.x = float(cos(spin) + sin(spin));
this isnt really working for me for some reason
can anyone help?
ive been out of math class for a while
If I''m not mistaken the spin variable needs to be incremented for each use of the rotation for it to have an effect. Otherwise, the code seems okay to me..
Tina
Tina
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement