Code cleanup: Purge obsoleted SharedPhysicsSystem methods (#26287)
Updated calls to SharedPhysicsSystem methods
This commit is contained in:
@@ -371,8 +371,8 @@ public sealed partial class ShuttleSystem
|
||||
Enable(uid, component: body);
|
||||
_physics.SetLinearVelocity(uid, new Vector2(0f, 20f), body: body);
|
||||
_physics.SetAngularVelocity(uid, 0f, body: body);
|
||||
_physics.SetLinearDamping(body, 0f);
|
||||
_physics.SetAngularDamping(body, 0f);
|
||||
_physics.SetLinearDamping(uid, body, 0f);
|
||||
_physics.SetAngularDamping(uid, body, 0f);
|
||||
|
||||
_dockSystem.SetDockBolts(uid, true);
|
||||
_console.RefreshShuttleConsoles(uid);
|
||||
@@ -426,8 +426,8 @@ public sealed partial class ShuttleSystem
|
||||
|
||||
_physics.SetLinearVelocity(uid, Vector2.Zero, body: body);
|
||||
_physics.SetAngularVelocity(uid, 0f, body: body);
|
||||
_physics.SetLinearDamping(body, entity.Comp2.LinearDamping);
|
||||
_physics.SetAngularDamping(body, entity.Comp2.AngularDamping);
|
||||
_physics.SetLinearDamping(uid, body, entity.Comp2.LinearDamping);
|
||||
_physics.SetAngularDamping(uid, body, entity.Comp2.AngularDamping);
|
||||
|
||||
var target = entity.Comp1.TargetCoordinates;
|
||||
|
||||
|
||||
@@ -129,10 +129,10 @@ public sealed partial class ShuttleSystem : SharedShuttleSystem
|
||||
return;
|
||||
|
||||
_physics.SetBodyType(uid, BodyType.Dynamic, manager: manager, body: component);
|
||||
_physics.SetBodyStatus(component, BodyStatus.InAir);
|
||||
_physics.SetBodyStatus(uid, component, BodyStatus.InAir);
|
||||
_physics.SetFixedRotation(uid, false, manager: manager, body: component);
|
||||
_physics.SetLinearDamping(component, shuttle.LinearDamping);
|
||||
_physics.SetAngularDamping(component, shuttle.AngularDamping);
|
||||
_physics.SetLinearDamping(uid, component, shuttle.LinearDamping);
|
||||
_physics.SetAngularDamping(uid, component, shuttle.AngularDamping);
|
||||
}
|
||||
|
||||
public void Disable(EntityUid uid, FixturesComponent? manager = null, PhysicsComponent? component = null)
|
||||
@@ -141,7 +141,7 @@ public sealed partial class ShuttleSystem : SharedShuttleSystem
|
||||
return;
|
||||
|
||||
_physics.SetBodyType(uid, BodyType.Static, manager: manager, body: component);
|
||||
_physics.SetBodyStatus(component, BodyStatus.OnGround);
|
||||
_physics.SetBodyStatus(uid, component, BodyStatus.OnGround);
|
||||
_physics.SetFixedRotation(uid, true, manager: manager, body: component);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user