Skip to content

KinematicCharacterBody.GetSlideCollisions() Method

Definition

Namespace: Brine2D.ECS.Components

Returns all contact pairs resolved during the last post-physics step. Normals are oriented away from the other body toward this character. Useful for surface material detection, landing sounds, and wall-jump queries. The list is cleared and repopulated every tick — do not hold a reference across frames.

C#
public System.Collections.Generic.IReadOnlyList<Brine2D.Physics.ContactPair> GetSlideCollisions();

Returns

System.Collections.Generic.IReadOnlyList<ContactPair>