Your [velocity alpha] multiply by zero.
If you want to slow down speed when crouch , it simplest way is set maxspeed by
Then you must use a variable like “brake” with value less than one then multiply with the current velocity to prevent long jump
I use Pseudocode for
Blockquote
Example :
// define brake variable 0-1
- List item
[range 0 1] Float brake = 0.9;
If ( key down to Crouch) then SetMaxSpeed to new value ;
Else SetMaxSpeed to normal value ;
While (tick) do
{
If ( checkInAir () ) then Velocity *= brake (is the air factor to redure speed)
}
Blockquote