idanarye / bevy-tnua

A floating character controller for Bevy

Home Page:https://crates.io/crates/bevy-tnua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Air actions

idanarye opened this issue · comments

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?

Mechanism implemented in 0.10.