Game Development Community

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.

#1
10/17/2009 (12:09 pm)
Nobody has any ideas? When I am in the editor I can mount and rotate the object just fine by console but when I add the mount by script I can't rotate it, no errors it just doesn't rotate, I tried every config I could think of. Anyone please?
#2
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 :)