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?
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?