Skip to content

PhysicsWorld.GetJointsAll(PhysicsBodyComponent, List) Method

Definition

Namespace: Brine2D.Physics

Returns all joints that body participates in (as either body A or body B), adding them to results. Clears results before writing. Returns immediately if the body has no live joints or has not yet been created.

public void GetJointsAll(Brine2D.ECS.Components.PhysicsBodyComponent body, System.Collections.Generic.List<Brine2D.ECS.Components.Joints.JointComponent> results);

Parameters

body PhysicsBodyComponent

The body to query joints for.

results System.Collections.Generic.List<JointComponent>

List to receive joint components.