Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Content.Shared/Movement/Pulling/Systems/PullingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -565,13 +565,13 @@ public bool TryStartPull(EntityUid pullerUid, EntityUid pullableUid,
{
// Joint startup
var union = _physics.GetHardAABB(pullerUid).Union(_physics.GetHardAABB(pullableUid, body: pullablePhysics));
var length = Math.Max(union.Size.X, union.Size.Y) * 0.75f;
var length = Math.Max(union.Size.X, union.Size.Y) * 0.65f;

var joint = _joints.CreateDistanceJoint(pullableUid, pullerUid, id: pullableComp.PullJointId);
joint.CollideConnected = false;
joint.CollideConnected = true;
// This maximum has to be there because if the object is constrained too closely, the clamping goes backwards and asserts.
joint.MaxLength = Math.Max(1.0f, length);
joint.Length = length * 0.75f;
joint.Length = length * 0.65f;
joint.MinLength = 0f;
joint.Stiffness = 1f;

Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/Physics/CollisionGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public enum CollisionGroup

// Humanoids, etc.
MobMask = Impassable | HighImpassable | MidImpassable | LowImpassable,
MobLayer = Opaque | BulletImpassable,
MobLayer = Opaque | BulletImpassable | MidImpassable,
// Mice, drones
SmallMobMask = Impassable | LowImpassable,
SmallMobLayer = Opaque | BulletImpassable,
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
noRot: true
drawdepth: Mobs
- type: Physics
bodyType: KinematicController
bodyType: Dynamic
- type: Fixtures
fixtures:
fix1:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
bounds: "-0.25,-0.48,0.25,0.48"
density: 75
mask:
- MachineMask
- CrateMask
layer:
- MachineLayer
- type: EntityStorage
Expand Down
Loading