Game Development Community

Problem Rotating Vehicle

by Diego Castaneda · in Torque Game Engine · 10/27/2009 (3:31 pm) · 1 replies

Hello everybody, i have a little problem trying to rotate a vehicle, the thing is that when i rotate it in the world editor in the field rotation it rotates how it should, but when i try to rotate it using
$idvehicle.setTransform(Transform);
just don't do the trick, by example if i rotate it with a transform x y z 0 0 1 10 when i go and look in the editor the car rotates 100 degrees around z when it should rotate only 10. so i don't know what's happening maybe someone can give me a hand here.

ps: i have a turret mounted to the vehicle don't know if this change anything.

Thanks for the help

#1
10/27/2009 (5:56 pm)
ok guys thanks for the help i got it, but its weird because when i put my data in the world editor i put it in degrees, but i just figured it out that if i put it in radians from the scripts with setTransform works great, it seems that to rotate cars with setTransform you have to put the angle in radians.

Thanks for the help, and sorry again for the thread :p