Object rotation
by James Tracey · in Torque Game Engine · 10/05/2005 (11:49 am) · 1 replies
How can I rotate all three axis of a Static Shape object?
I tried using:
$shape.setTransform(0 SPC 0 SPC 100 SPC 1 SPC 0 SPC 0 SPC %Pitch *-1 );
$shape.setTransform(0 SPC 0 SPC 100 SPC 0 SPC 1 SPC 0 SPC %Roll *-1 );
$shape.setTransform(0 SPC 0 SPC 100 SPC 0 SPC 0 SPC 1 SPC %Heading );
But all it does is rotate the heading.
Also, is there a way to set the cameras Transform/Rotation via script?
I tried using:
$shape.setTransform(0 SPC 0 SPC 100 SPC 1 SPC 0 SPC 0 SPC %Pitch *-1 );
$shape.setTransform(0 SPC 0 SPC 100 SPC 0 SPC 1 SPC 0 SPC %Roll *-1 );
$shape.setTransform(0 SPC 0 SPC 100 SPC 0 SPC 0 SPC 1 SPC %Heading );
But all it does is rotate the heading.
Also, is there a way to set the cameras Transform/Rotation via script?
Torque Owner Jack Oneal
Im not sure exactly how you mean to rotate your object but this should get you started.