Game Development Community

Converting Maya rotation values to Torque rotation values.

by 840LABS · in Torque 3D Professional · 05/12/2010 (12:27 pm) · 2 replies

Hello community,

Does anyone out there know the equation for converting Maya's rotation values to Torques rotation values?

For example,

In the Maya the object's rotation value looks like this:
rotatex = 0
rotatey = 0
rotatez = 180

And in torque the same rotation value looks like this:
0 0 1 180

I have a mel script which will print a maya object into TSStatic format, but I cant convert the rotation values accurately.

Thanks!

#1
05/12/2010 (1:32 pm)
The editor uses axis-angle rotations. Here's an article on how to calculate them from euler angles:
www.euclideanspace.com/maths/geometry/rotations/conversions/eulerToAngle/index.h...
#2
05/12/2010 (1:42 pm)
Thanks Manoel Neto! You're awesome!