Blanks
01-27-2010, 09:48 AM
As you can tell by the post title my math sucks (I'm working on it :) ). Basically I have a bone ($bone2) with its position aligned to another bone ($bone1) but not linked. When I move $bone1 I would like $bone2 to to rotate around the end point of itself. I understand he logic but don't know how to calculate it.
//store position of end point of $bone2 based on its position and length
// calculate matrix of the end of $bone1 and align $bone1 in position and rotation
//set the direction of $bone2 to the direction from the position of $bone2 to the position stored earlier
I hope that makes sense. If anyone can help that would be great
It wont give me exactly what I want because I need the $bone2s rotation to be constrained to the xy plane of $bone1 but I'll work that out later
Thanks
J
//store position of end point of $bone2 based on its position and length
// calculate matrix of the end of $bone1 and align $bone1 in position and rotation
//set the direction of $bone2 to the direction from the position of $bone2 to the position stored earlier
I hope that makes sense. If anyone can help that would be great
It wont give me exactly what I want because I need the $bone2s rotation to be constrained to the xy plane of $bone1 but I'll work that out later
Thanks
J
