idanarye / bevy-tnua

A floating character controller for Bevy
https://crates.io/crates/bevy-tnua
Apache License 2.0
238 stars 16 forks source link

Air actions #6

Closed idanarye closed 12 months ago

idanarye commented 1 year ago

Things like double jumps, air dashes, etc.

When jumping from the ground, the player can hold the jump button and Tnua recognizes that it shouldn't jump again. But with air jumping, things would work differently. Tnua should allow multiple jumps in the air, and provide the control system with information on how many jumps happened in the same air-time, so that the control system could decide how much power to put into the next jump and whether to allow another jump at all.

I think air dashes would work in a similar fashion - but instead of jumping upward, they'd propel the player in some another direction. Need to decide how the API should be - should it calculate the required velocity to reach a certain distance? Should I provide a way to offset gravity while air dashing?

idanarye commented 12 months ago

Mechanism implemented in 0.10.