pmndrs / ecctrl

🕹ī¸ A floating rigibody character controller
MIT License
566 stars 65 forks source link

Idle animation not looping #67

Open NicolasBrondin opened 6 months ago

NicolasBrondin commented 6 months ago

When setting my idle animation, I was expecting it to loop like the walk, but instead it gets played only once, after the character stays static.

Thank you for your amazing job 🙏

ErdongChen-Andrew commented 6 months ago

Thanks @NicolasBrondin ! Did you set up the animation name correctly?

æˆĒåą2024-05-27 17 19 16
NicolasBrondin commented 6 months ago

Yes absolutely ! Otherwise it would not trigger at all I guess! Right now it's played once when the player loads (or when you stop walking), then it stops (but it does not come back to the T shape, it stays in the same position than the last frame of the idle animation)

ErdongChen-Andrew commented 6 months ago

Did you use the animation multiple times? For example, did you put "idle" in "fall"? I can't help much without seeing any code. Maybe you can check the example app setups here: https://github.com/pmndrs/ecctrl/blob/main/example/Experience.tsx.

NicolasBrondin commented 6 months ago

@ErdongChen-Andrew Yes I did! I will try with different animations to see if it fixes the issue 🙏

MULUALEM-TEKLE commented 2 months ago

making sure no animation action is reused is a must, it fixed a similar issue in my case, thanks @ErdongChen-Andrew