2761
Modification Help / Re: How does Torque rotation work?
« on: June 06, 2016, 09:07:00 PM »
I personally use the Angle system from regular fxDTSBricks.
Now rotationFromAngleID(); does that. Returns the XYZθ by hard-coding but I've yet to see any issues with this.
Code: [Select]
angleID = %angle;
rotation = rotationFromAngleID(%angle);Now rotationFromAngleID(); does that. Returns the XYZθ by hard-coding but I've yet to see any issues with this.
Code: [Select]
function rotationFromAngleID(%angle)
{
switch(%angle)
{
case 0:
%rotation = "1 0 0 0";
case 1:
%rotation = "0 0 1 90";
case 2:
%rotation = "0 0 1 180";
default:
%rotation = "0 0 -1 90";
}
return %rotation;
}