Skip to content

Commit

Permalink
missing cvar from changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua committed Apr 23, 2024
1 parent 71d6a3e commit 1030533
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2099,7 +2099,8 @@ bool FPhysicsReplicationAsyncVR::ResimulationReplication(Chaos::FPBDRigidParticl
}
#endif
// Apply correction to position and rotation
RigidsSolver->GetEvolution()->ApplyParticleTransformCorrection(Handle, CorrectedX, CorrectedR, PhysicsReplicationCVars::ResimulationCVars::bRuntimeCorrectConnectedBodies);
static const auto CVarResimRuntimeCorrectConnectedBodies = IConsoleManager::Get().FindConsoleVariable(TEXT("np2.Resim.RuntimeCorrectConnectedBodies"));
RigidsSolver->GetEvolution()->ApplyParticleTransformCorrection(Handle, CorrectedX, CorrectedR, CVarResimRuntimeCorrectConnectedBodies->GetBool());
}

// Keep target for NumPredictedFrames time to perform runtime corrections with until a new target is received
Expand Down

0 comments on commit 1030533

Please sign in to comment.