Attempt of introducing a Flap/Glide realistic flight mode. Small tweaks to the movement of the player when airborne (not in flight mode).
- Fixes falloff of velocity to not be instantly (for example when you get pushed by an explosion)
Flap
your arms to fling yourself up as if you had wings.Spread
your arms when airborne in order toGlide
. Going up reduces speed, going down gains speed.- You can use the
bool
parameterIsGliding
in your animator. - You can use the
float
parameterGlidingVelocity
in your animator. - You can use the
bool
parameterJustFlapped
in your animator. It will stay on for0.2
seconds after flapping. - You can use the
float
parameterFlapVelocity
in your animator. It will keep the value for0.2
seconds after flapping.