Skip to content

Commit

Permalink
Fix the compile error when rotation variable changed~
Browse files Browse the repository at this point in the history
  • Loading branch information
songfeiyu.1986 committed May 11, 2024
1 parent af27729 commit 76cf624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ALS/Private/AlsCharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ void AAlsCharacter::RefreshGait()
SetGait(ActualGait);

const auto RelativeVelocityDirection{
LocomotionState.RotationQuaternion.UnrotateVector(LocomotionState.Velocity).GetSafeNormal()
LocomotionState.Rotation.UnrotateVector(LocomotionState.Velocity).GetSafeNormal()
};
AlsCharacterMovement->SetRelativeVelocityDirection(RelativeVelocityDirection);
}
Expand Down

0 comments on commit 76cf624

Please sign in to comment.