Skip to content

Commit

Permalink
Remove duplicate call on ragdoll update
Browse files Browse the repository at this point in the history
  • Loading branch information
dyanikoglu authored Nov 6, 2020
1 parent f4c11f6 commit ad4e14e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Source/ALSV4_CPP/Private/Character/ALSBaseCharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,6 @@ void AALSBaseCharacter::RagdollUpdate(float DeltaTime)
// Set the Last Ragdoll Velocity.
FVector NewRagdollVel = GetMesh()->GetPhysicsLinearVelocity(FName(TEXT("root")));
LastRagdollVelocity = (NewRagdollVel != FVector::ZeroVector || IsLocallyControlled()) ? NewRagdollVel : LastRagdollVelocity / 2;
LastRagdollVelocity = (NewRagdollVel != FVector::ZeroVector || IsLocallyControlled()) ? NewRagdollVel : LastRagdollVelocity / 2;

// Use the Ragdoll Velocity to scale the ragdoll's joint strength for physical animation.
const float SpringValue = FMath::GetMappedRangeValueClamped({0.0f, 1000.0f}, {0.0f, 25000.0f}, LastRagdollVelocity.Size());
Expand Down

0 comments on commit ad4e14e

Please sign in to comment.