Is there a way to update position of asset while is animated?

I’ve some models with walking animation but they don’t move, is there a way to set a path for any model or update their position while they’re walking?
Sorry for my misspelling.

Hi @Axel_Saucedo,

The model will always animate in model space, in relation with the entity’s base point (world position).

To move your character while the animation is playing you can just use setPosition/translate directly on the entity. Or if you are using physics applyForce/applyImpulse.

You can take a look at the following example project which demonstrates this nicely:

https://developer.playcanvas.com/en/tutorials/third-person-controller/

1 Like

And for animating an entity on a path take a look at the camera following a path example project. It will work for any entity, not only a camera:

https://developer.playcanvas.com/en/tutorials/camera-following-a-path/

1 Like