Problem Syncronize movement model ms3d

i want make animation “running man” with model like example at TestFireMilk.But In the TestFireMilk i see that there is just load model run.ms3ds and play the animation though jointcontroller.there is no movement of object run.ms3ds. I 'd like to move this object(run.ms3ds), so we can see it move continuesly both animation and the coordinate like player at rpg game.

i have already try to detect frame playing like advise from http://www.jmonkeyengine.com/jmeforum/index.php?topic=7590.0

But i still fall when try to locate it at coordinate where the frame play. i use method

setLocalTranslation()

when the last frame play.are there any method can help me to do it?thank very much before!

The model used in the test is unfit for what you're trying to do. The test model already is offseted by a certain amount so that you do not have to move it manually to see the correct animation. You need to create a model where the person is running but is not moving from it's position. Then you can use the setLocalTranslation() method to move it forward as it walks on your terrain.

thank for help me!

But i still confuse about it.


Momoko_Fan said:

You need to create a model where the person is running but is not moving from it's position.

Does the test model actually move it's coordinate when it move/play? If yen can i get the coordinate everytime when it play?If not i am goin to try u'r suggestion!
Thanks a lot!

No, the model itself does not move. Only the hands and legs move to make the walk animation.

by the How to check frame paying ?

i try with controller.getCurrentFrame()*controller.FPS


the result like my post at
http://www.jmonkeyengine.com/jmeforum/index.php?topic=7590.0
any method that can check it in acurate?