Vector Rotation
by Xavier "eXoDuS" Amado · in Torque Game Engine · 06/16/2002 (11:26 pm) · 4 replies
How would you rotate a vector in the scripts?
For example i have a muzzle vector and i want to rotate it 90 degrees.
For example i have a muzzle vector and i want to rotate it 90 degrees.
About the author
Torque 3D Owner Luigi Rosso
Since you mentioned muzzle, I assume you're doing this in the onFire method of a ShapeBaseImage (so %data, %obj, and %slot are given).
Remember the angle needs to be in radians.