SetTransform Issues
by Nick Matthews · in Torque Game Engine · 01/21/2007 (1:00 pm) · 3 replies
Im having trouble using this command on TGE 1.2 or something. I type this:
%obj.setTransform("0 0 0 0 0 -1 45");
and it goes to there, but it goes to "0 0 -1 54.something" rotation and I have no idea why. There is absolutely no reason for it to. Any help?
%obj.setTransform("0 0 0 0 0 -1 45");
and it goes to there, but it goes to "0 0 -1 54.something" rotation and I have no idea why. There is absolutely no reason for it to. Any help?
#2
01/21/2007 (1:30 pm)
Ah. So how do i make my object go to a 45 degree angle? I haven't run into this problem for ages and I cannot understand what is going on.
#3
01/21/2007 (1:43 pm)
Nevermind. I worked around it using Eric's rotation conversion function: http://www.garagegames.com/mg/forums/result.thread.php?qt=18147
Torque Owner Stefan Lundmark