Game Development Community

Mounting problems

by Matt Kenley · in Torque X 2D · 11/02/2007 (8:52 am) · 1 replies

Hey all,

My problem is this: I have a sprite pointing and rotating towards the mouse; it works perfectly when not mounted. However, when I mount it, it no longer has this functionality. I made sure the collisions were not the problem. So, if anyone has any suggestions please help me out, thanks!

#1
11/09/2007 (3:49 pm)
In your component's OnRegister function, add the following.

SceneObject.TrackMountRotation = false;

Or set the corresponding checkbox in the mount section of the edit tab in TBX. It's Track Rotation actually.

Proceed to set the rotation in the ProcessTick method as you would expect.

Profit.