Digital Art Zone

 
     
Using XYZ Rotation Order for Ball Joint Constraints
Posted: 27 June 2012 12:16 PM   [ Ignore ]
New Member
Total Posts:  16
Joined  2006-10-25

Hi. Have not been able to find any explanation on exactly how the XYZ rotation order influences the XYZ constraints that can be set for a ball joint selected from the Motion tab/constraints drop down menu. I was working with a robotic structure, using the rotation tool to rotate a leg from the hip along a specific axis and getting unexpected results such as the leg suddenly reversing it’s rotation direction on releasing the mouse or not being able to move the leg all the way to the end range of its set rotation. I changed the XYZ rotation order and everything works perfectly but I’m not sure I understand why. Is it something to do with setting the XYZ rotation order so that the axis allowing the greatest range of motion is first, and the one with the least range (or locked altogether) is last? (I’m currently running Carrara 6 Pro.)

Profile
 
 
Posted: 27 June 2012 01:18 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  14232
Joined  2003-10-09

The first axis is the twist axis, which behaves differently from a bend axis. Usually it will be the axis that points along the bone.


The second and third axes are the bends - because the third axis is rotated by the second, which can lead to its not being able to achieve the desired result, it’s best to have the bend that is most likely to hit a right angle, or to get closest, last. That way you are least likely to get gimbal lock, where two axes end up on top of each other and so you can’t make any rotations in the third dimension.

 Signature 

DAZ Studio Frequently Asked Questions

Index of free DAZ Studio scripts and plugins list

Profile
 
 
Posted: 27 June 2012 02:35 PM   [ Ignore ]   [ # 2 ]
New Member
Total Posts:  16
Joined  2006-10-25

Aha! Thanks for shedding some light on the problem I was dealing with and for identifying it as gimbal lock (read a little further about that online). So now, from your explanation, I understand to order my twist axis first (depending on the orientation of my linked object) and keep the axis most likely to achieve a bend of 90 degrees (or greater, I assume) last.

Profile