Game Development Community

Minor bug: Mounting in editor track rotation not un-setting

by Will O-Reagan · in Torque X 2D · 05/30/2010 (5:35 pm) · 3 replies

I've tried mounting an object in the editor, and rotating it, it goes back to zero rotation on load.

About the author

I have a degree in dramatic art, and literature, from UC Santa Barbara. I've worked for a few studios, also at Animax Ent in 2008, and some smaller studios. Currently studying Computer Science at CSU Channel Islands.


#1
05/30/2010 (7:54 pm)
Is the property ownedByMount set for your object? I believe in that case it will be the same rotation as the object it's mounted to.
#2
05/30/2010 (8:10 pm)
Nope, owned by mount is still unchecked, did nothing.
#3
05/30/2010 (8:29 pm)
Ok, looks like you are on the right track.. went into mount function and found this...

TrackMountRotation = true;

looked suspicious, so i changed it to this

if (ownedByMount)
            TrackMountRotation = true;

Now track by rotation doesn't work from the editor though. I just changed the art for now, but it would be nice to get this feature to work properly.