webaverse / app

Web metaverse client
https://app.webaverse.com
MIT License
343 stars 207 forks source link

Jump animation looks bad from a height #3662

Closed avaer closed 2 years ago

avaer commented 2 years ago

Right now the jump flow is hardcoded to animate from ground jump time. But there's a couple of problems with that:

1) It hardcodes the jump animation to be exactly as long as the jump time, making it hard to edit for animators 2) This does not look good for jumping/falling from a larger height, where we would like a longer animation, but it is inerrupted by the hardcode logic

In general, there should be no place in the engine where the animation time is hardcoded into logic. We can access animation durations easily in the code.