Actually the way you resolve the joint orientation can be used to as a test. Example from your picture, we can see the z-axis always point in a certain direction defined by your joint orientation code. 1) Find a mid point, M between joint 1 and joint 3. 2) Then get a vector from joint2 to M, maybe called OM 3) do a dot product of OM and the z-axis (or any other axis u define) . 4) If the dot product is more than 0, the it is the short angle, else take the long angle.
Hope it helps. :) Cheers, JS Neo On 4 March 2013 06:15, Bradon Webb <[email protected]> wrote: > my formula for calculation of the short and long angle seems fine. I > assumed it would always be the long angle but you can see in this picture > that its going to be a mix of short and long. it seems like there should > be a simple test for the joint to detect its child and parent joints to > triangulate some position to determine which way the angle should go but > I'm having a problem figuring out what kind of math test to use. > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
