Set WantToSlide status in Enter and Exit Slide functions in movement component

This commit is contained in:
baz 2024-01-12 15:57:12 +00:00
parent 9bb3225542
commit ed84a592ef
1 changed files with 2 additions and 2 deletions

View File

@ -203,14 +203,14 @@ bool UNakatomiCMC::IsCustomMovementMode(ECustomMovementMove InCustomMovementMode
void UNakatomiCMC::EnterSlide()
{
// bWantsToCrouch = true;
Safe_bWantsToSlide = true;
Velocity += Velocity.GetSafeNormal2D() * Slide_EnterImpulse;
SetMovementMode(MOVE_Custom, CMOVE_Slide);
}
void UNakatomiCMC::ExitSlide()
{
// bWantsToCrouch = false;
Safe_bWantsToSlide = false;
FQuat NewRotation = FRotationMatrix::MakeFromXZ(UpdatedComponent->GetForwardVector().GetSafeNormal2D(), FVector::UpVector).ToQuat();
FHitResult Hit;