Anyone got a function to rotate a vector?
Here's the function I used and it's returning totally screwy results.
x = (x * Cos(angle)) - (y * Sin(angle))
y = (y * Cos(angle)) + (x * Sin(angle))
Here's the function I used and it's returning totally screwy results.
x = (x * Cos(angle)) - (y * Sin(angle))
y = (y * Cos(angle)) + (x * Sin(angle))