Rotate mounted object
by Steve D · in Torque Game Builder · 10/15/2009 (1:52 am) · 2 replies
Hi everyone, I searched the forums but only found answers relating to TGE. Quite simply, I am mounting object A (a static sprite) to object B (another static sprite) and I want to rotate object A - I don't want it to rotate around object B or anything like that, just rotate it like a normal object. I tried a bunch of rotate commands, I don't get any error it just doesn't work. I am mounting it like this -
%mountweapon.Mount(%vehicleid, %offset, 0, true, false, true, true);
Can anyone help me please? Seems like it should be an easy thing to do so I must be missing something obvious.
%mountweapon.Mount(%vehicleid, %offset, 0, true, false, true, true);
Can anyone help me please? Seems like it should be an easy thing to do so I must be missing something obvious.
#2
Ok, I don;t know how your rotating it but go to the mounted object (Object your mounting) and scroll all the way down in the EDIT tab. You should see a mini tab that says mounting. Make sure the Track Rotation is clicked off, but make the Owned By mount on.
Hope this helped :)
10/17/2009 (5:01 pm)
Here what works,Ok, I don;t know how your rotating it but go to the mounted object (Object your mounting) and scroll all the way down in the EDIT tab. You should see a mini tab that says mounting. Make sure the Track Rotation is clicked off, but make the Owned By mount on.
Hope this helped :)
Torque Owner Steve D