Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: esarai on May 08, 2010, 02:09:07 am

Title: Subobject Animation doesn't work when rotating about z axis
Post by: esarai on May 08, 2010, 02:09:07 am
Hey SCP,

I encountered a weird... thing while attempting to make some assets for BP:WiH.  The item in question is a ship that has animated subobjects triggered by turret firing.  I've been using the +relative_angle: measurement to define how they rotate.  The strange thing is that when I have an x or y axis rotation defined, the subobjects move.  When I define a z-axis rotation, nothing happens; the subobjects just sit still. 

Is there anyone out there who can explain why this is to me and give me a solution?  And if none exists, please consider this a request to get triggered rotation about the z-axis relative to the ship in working order.

As always, any help is greatly appreciated!
Title: Re: Subobject Animation doesn't work when rotating about z axis
Post by: Nuke on May 08, 2010, 02:38:50 am
sounds like a good ol' fashioned case of gimbal lock. thats the problem with using euler angles to define an orientation. could try defining uvec and fvec, or tweak your angles slightly or try an equivalent rotation. you could also try kicking it a couple times and sacrificing a virgin, i find that always helps.
Title: Re: Subobject Animation doesn't work when rotating about z axis
Post by: Vasudan Admiral on May 08, 2010, 04:12:25 am
Actually I seem to recall PCS2 has had trouble with defining axes of rotation before. Try opening the pof (once Z rotation has been specified in PCS2) in PCS1 and seeing if it confirms that axis compared to what it confirms with X and Y.