Simple way to translate a gravity vector

Started by
1 comment, last by Andreas Persson 17 years, 2 months ago
Hi I have a gravity vctor Vec3(0.0, -9.82, 0.0) but want to rotate it 10.8 degrees in z is there a simple math formula to do this or someone that can tell me the new vector?
Casual game dev www.apgames.se
Advertisement
x' = x cos θ - y sin θy' = x sin θ + y cos θz' = z 
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!
Thank you
Casual game dev www.apgames.se

This topic is closed to new replies.

Advertisement