Good day. Please tell me how to add, for example, an animation of climbing stairs to a ready-made character with its own animations. I am trying to do this from https://playcanvas.com/project/739888/overview/third-person
And I want to add one of these animations Mixamo
When I add to the file itself to the model with the .glb extension in the editor, I freezes the preview
I think the third person example may be using an older/different skeleton. You may have to export the animation together with a skin (model) and setup from start the character controller.
Try first on a blank project to see if that’s the case and this resolves your issue.
Ah, now for that you need to set In mixamo the following setting to true, before exporting:
In Place
That will make the animation scene at the same local coordinates and you can move the model yourself to match the steps taken.
For fully precise movement between the animation and the model vertices you will need to implement inverse kinematics (not supported currently by PlayCanvas).
@Leonidas, could you please help me again?
Help cope with the jerking on the animation of climbing the stairs, please)![2021-01-18 16-52-15|video]
2021-01-18 17-27-52
This is how i start the animation if ((e.key === pc.KEY_SHIFT) && (this.state !== 'runStairUp')) { this.setState('runStairUp'); }
This is how I move the capsule
if (app.keyboard.isPressed(pc.KEY_SHIFT)) {
this.speed= 0.04;
z-= forward.z;
y+=up.y;
}