I’ve built a dash function that is supposed to make the player dash in the direction hes facing, however dashing up /down only works while in the air. While on ground i can only make dashes along the ground.
I want to be able to dash up off the ground
GetCharacterMovement()->StopMovementImmediately();
GetCharacterMovement()->GravityScale = 0;
GetCharacterMovement()->GroundFriction = 0;
FVector VecX = FirstPersonCameraComponent->GetForwardVector();
GetCharacterMovement()->Velocity += (VecX) * 4500;