This may be me jumping in late, so stop me if I've missed something, but what's the angleBetween not giving you? As I read it, sounds like you want to rotate on the plane as defined by A and B, which means you want to rotate around the vector C which is perpendicular to A and B, by the amount which would be angleBetween(A, B). If you want to constrain to an arbitrary vector C which *isn't* perpendicular to A and B, there's no solve that will make A == B with a single angle.
On Mon, Nov 3, 2014, at 10:33 PM, sam williams wrote: > im saying the source is constrained to rotate around a > particular axis. > > So say the axis vector is pointing straight up in y (0,1,0) and the > vector source is pointing in x (1,0,0) and there is a target vector > which is -45 in x and z. so pointing diagonally down from the > horizontal. I need to know how much i need to rotate the source vector > so that it is pointing in the direction of the target vector. But > obviously all it can do is swivel around its axis (0,1,0). In this > particular case it would need to rotate -45 degrees in y to be > pointing at the destination vec. > > i hope this clears it up better. > > thanks, Sam > > -- > 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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/fe50bf20-2006-432d-b9c4-5ac5653a122e%40googlegroups.com[1]. > For more options, visit https://groups.google.com/d/optout. Links: 1. https://groups.google.com/d/msgid/python_inside_maya/fe50bf20-2006-432d-b9c4-5ac5653a122e%40googlegroups.com?utm_medium=email&utm_source=footer -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1415019275.2341945.186396901.2F82D63A%40webmail.messagingengine.com. For more options, visit https://groups.google.com/d/optout.
