pmndrs / ecctrl

🕹ī¸ A floating rigibody character controller
MIT License
465 stars 49 forks source link

Idle animation not looping #67

Open NicolasBrondin opened 1 month ago

NicolasBrondin commented 1 month 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 1 month ago

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

æˆĒåą2024-05-27 17 19 16
NicolasBrondin commented 1 month 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 1 month 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 1 month ago

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