Author Topic: Error with rotation of a vehicle  (Read 456 times)

Whenever I try setting rotation of a vehicle, it doesn't do anything, and I'm very sure the parameters are correct. They echo and I try to set within the same function



%mount = %client.getcontrolobject().getObjectMount();

%mount.rotation = xxxx;

Whenever I try setting rotation of a vehicle, it doesn't do anything, and I'm very sure the parameters are correct. They echo and I try to set within the same function



%mount = %client.getcontrolobject().getObjectMount();

%mount.rotation = xxxx;

To change rotation, you must use setTransform, which includes both position and rotation.

Code: [Select]
%mount.setTransform(%mount.getPosition() SPC xxxx);

Torque uses axis angles for rotation rather than degrees, which is where Trader's axis functions come in.
« Last Edit: April 18, 2009, 11:48:13 PM by SolarFlare »

Oh, Badspot said that was proper, must've said it wrong.