Update player position

Im trying to update my player’s position. My player walks and when it collides with an item, it will stumble and fall. But when it gets up, it goes back to its original position.

Overview | Dashboard | Character_Anim_Midterms | PlayCanvas | 3D HTML5 & WebGL Game Engine

I’m not sure if what you’ve implemented right now is what you intended but to answer this question you can do 2 things:

  • Instead of the current falling-down animation which has some translation on the axis, get an animation that keeps the model ‘in place’ (in mixamo you can tick a box to get the animation at a single position)

  • Since your character is falling only in the forward direction, when you press the key for getting up you can update the player position with an offset on the axis it is falling down in the animation, To get the perfect offset position you might have to do some hit and try with the offset distance.