Skip to content

Commit

Permalink
Temporary code for debugging ShadowfallStudios#258 shaking tool problem:
Browse files Browse the repository at this point in the history
    to avoid overshot when interpolating rotation on ROLE_SimulatedProxy, only drive it with replicated actor rotation(the PreventMeshMove has side effect, so it's commented out)
  • Loading branch information
ameaninglessname committed Oct 4, 2022
1 parent 8e89baa commit cb5a04e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/ALSV4_CPP/Private/Character/ALSBaseCharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,13 @@ void AALSBaseCharacter::UpdateGroundedRotation(const float DeltaTime)
}
else
{
if (GetLocalRole() == ROLE_SimulatedProxy)
{
// const FScopedPreventAttachedComponentMove PreventMeshMove(GetMesh());
SmoothCharacterRotation(GetReplicatedMovement().Rotation, 10.f, 30.f, DeltaTime);
return;
}

// Not Moving

if ((ViewMode == EALSViewMode::ThirdPerson && RotationMode == EALSRotationMode::Aiming) ||
Expand Down

0 comments on commit cb5a04e

Please sign in to comment.