Use ID for pulljoint (#4118)

This commit is contained in:
metalgearsloth
2021-05-31 21:31:55 +10:00
committed by GitHub
parent 3ef688341f
commit e73701187d

View File

@@ -158,7 +158,7 @@ namespace Content.Shared.GameObjects.Components.Pulling
var length = Math.Max(union.Size.X, union.Size.Y) * 0.75f;
_physics.WakeBody();
_pullJoint = pullerPhysics.CreateDistanceJoint(_physics);
_pullJoint = pullerPhysics.CreateDistanceJoint(_physics, $"pull-joint-{_physics.Owner.Uid}");
// _physics.BodyType = BodyType.Kinematic; // TODO: Need to consider their original bodytype
_pullJoint.CollideConnected = false;
_pullJoint.Length = length * 0.75f;