Manipulating the skeleton inside the code

Hi,

I need to rotate the head and eyes of my character to fallow moving objects. I would like to act on the concerned nodes in it’s skeleton, directly from the code (mesh.xml with .skeleton exported from 3dsmax with ogremax).

Is there a way to do that?

Thanks in advance.

Ben

Solved :

[java]Bone b = animcontrol.getSkeleton().getBone(“MyBone”);
b.setUserControl(true);
s.setUserTransforms(…);[/java]

1 Like