Code cleanup: Purge obsoleted SharedPhysicsSystem methods (#26287)
Updated calls to SharedPhysicsSystem methods
This commit is contained in:
@@ -174,7 +174,7 @@ public sealed class ThrowingSystem : EntitySystem
|
||||
}
|
||||
else
|
||||
{
|
||||
_physics.SetBodyStatus(physics, BodyStatus.InAir);
|
||||
_physics.SetBodyStatus(uid, physics, BodyStatus.InAir);
|
||||
}
|
||||
|
||||
if (user == null)
|
||||
@@ -191,10 +191,10 @@ public sealed class ThrowingSystem : EntitySystem
|
||||
{
|
||||
var msg = new ThrowPushbackAttemptEvent();
|
||||
RaiseLocalEvent(uid, msg);
|
||||
const float MassLimit = 5f;
|
||||
const float massLimit = 5f;
|
||||
|
||||
if (!msg.Cancelled)
|
||||
_physics.ApplyLinearImpulse(user.Value, -impulseVector / physics.Mass * pushbackRatio * MathF.Min(MassLimit, physics.Mass), body: userPhysics);
|
||||
_physics.ApplyLinearImpulse(user.Value, -impulseVector / physics.Mass * pushbackRatio * MathF.Min(massLimit, physics.Mass), body: userPhysics);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user