Use ID for pulljoint (#4118)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user