Add IEntity.IsWeightless extension method (#2255)
Checking manually every time wasn't that cool
This commit is contained in:
@@ -56,8 +56,7 @@ namespace Content.Shared.GameObjects.EntitySystems
|
||||
{
|
||||
physics.EnsureController<MoverController>();
|
||||
|
||||
var weightless = !transform.Owner.HasComponent<MovementIgnoreGravityComponent>() &&
|
||||
_physicsManager.IsWeightless(transform.Coordinates);
|
||||
var weightless = !transform.Owner.IsWeightless();
|
||||
|
||||
if (weightless)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user