Pulling state handling changes (#9952)
This commit is contained in:
@@ -71,10 +71,13 @@ namespace Content.Client.Physics.Controllers
|
||||
|
||||
if (TryComp(player, out JointComponent? jointComponent))
|
||||
{
|
||||
foreach (var joint in jointComponent.GetJoints)
|
||||
foreach (var joint in jointComponent.GetJoints.Values)
|
||||
{
|
||||
joint.BodyA.Predict = true;
|
||||
joint.BodyB.Predict = true;
|
||||
if (TryComp(joint.BodyAUid, out PhysicsComponent? physics))
|
||||
physics.Predict = true;
|
||||
|
||||
if (TryComp(joint.BodyBUid, out physics))
|
||||
physics.Predict = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user