PhysicsWorld.GetSleepingBodies() Method
Definition¶
Namespace: Brine2D.Physics
Returns all currently sleeping PhysicsBodyComponent instances (dynamic or kinematic bodies that have come to rest). Returns an empty sequence if no bodies are sleeping or the physics system has not been initialized yet.
public System.Collections.Generic.IEnumerable<Brine2D.ECS.Components.PhysicsBodyComponent> GetSleepingBodies();
Returns¶
System.Collections.Generic.IEnumerable<PhysicsBodyComponent>