move arm

mariodifrancesco

22-12-2008 21:29:58

I have a problem, i created a SceneManager, SceneNode and an Entity(jaiqua.mesh), now I'm going to move an arm, to do this need I to do animation? or is possible only to do:

rforearm = skel.getBone("Rforearm")
rforearm.setPosition( , , )

SiWi

23-12-2008 09:44:18

Whatever you prefer. See the demos for how it works to load an animation.
If you want to move the arm directly, without animation, you have to get the bone you want to move and set it to manually controlled.
Aftwerwards you will be allowed to set it's position and orientation.
See: http://www.ogre3d.org/docs/api/html/cla ... 1Bone.html