Merge movement-component #1

Merged
baz merged 20 commits from movement-component into master 2024-01-18 18:30:17 +01:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit ed84a592ef - Show all commits

View File

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