PDA

View Full Version : Another math question.............


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

CGTalk Moderation
01-27-2010, 09:48 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.