PhysicsWorld.GetAllBodies() Method
Definition
Namespace: Brine2D.Physics
Returns all currently simulated PhysicsBodyComponent instances tracked by the physics system. Returns an empty sequence if the physics system has not been initialized yet.
C#
public System.Collections.Generic.IEnumerable<Brine2D.ECS.Components.PhysicsBodyComponent> GetAllBodies();
Returns
System.Collections.Generic.IEnumerable<PhysicsBodyComponent>