bone,skeleton basic question

Get answers to all your basic programming questions. No Ogre questions, please!
robel
Halfling
Posts: 97
Joined: Fri Sep 28, 2012 4:12 pm

bone,skeleton basic question

Post by robel »

Hi,
i have just one question and i hope that i find the solution :
when i import skeleton in ogre3d and i want to rotate bone manually i want to know if the bon childrens folow the bone or no ?
for exemple in the skeleton.xml we have
<bonehierarchy>
<boneparent bone="elbow" parent="shoulder" />
<boneparent bone="wrist" parent="elbow" />
..........................................
so if i set the shoulder rotation , does the elbow and wrist track it automatically or i must add another program to do that

thanks very much
robel
Halfling
Posts: 97
Joined: Fri Sep 28, 2012 4:12 pm

Re: bone,skeleton basic question

Post by robel »

hi any reply?
if you did not understand my question i can refolmulat it
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 535

Re: bone,skeleton basic question

Post by Kojack »

Bones in a skeleton form a hierarchy. Moving/rotating one bone causes all child bones to be affected automatically.
robel
Halfling
Posts: 97
Joined: Fri Sep 28, 2012 4:12 pm

Re: bone,skeleton basic question

Post by robel »

hi, thanks for your replu
i come back with another basoc question

the angle rotation of the bone it's the angle rotation of the segment ?exempl: the bone is the hip and the seglent is the thigh wehn we set the bone orientation the thigh change his orientation too in this case they have the same orientation or no?