Table of Contents

Interface IContactHandler

Namespace
Stride.BepuPhysics.Definitions.Contacts
Assembly
Stride.BepuPhysics.dll
public interface IContactHandler
Extension Methods

Properties

NoContactResponse

Whether the object this is attached to should let colliders pass through it

bool NoContactResponse { get; }

Property Value

bool

Methods

OnStartedTouching<TManifold>(Contacts<TManifold>)

Fires the first time a pair is observed to be touching. Touching means that there are contacts with nonnegative depths in the manifold.

void OnStartedTouching<TManifold>(Contacts<TManifold> contacts) where TManifold : unmanaged, IContactManifold<TManifold>

Parameters

contacts Contacts<TManifold>

Data associated with this contact event.

Type Parameters

TManifold

Type of the contact manifold detected.

OnStoppedTouching<TManifold>(Contacts<TManifold>)

Fires when a pair stops touching. Touching means that there are contacts with nonnegative depths in the manifold.

void OnStoppedTouching<TManifold>(Contacts<TManifold> contacts) where TManifold : unmanaged, IContactManifold<TManifold>

Parameters

contacts Contacts<TManifold>

Data associated with this contact event.

Type Parameters

TManifold

Type of the contact manifold detected.

OnTouching<TManifold>(Contacts<TManifold>)

Fires whenever a pair is observed to be touching. Touching means that there are contacts with nonnegative depths in the manifold. Will not fire for sleeping pairs.

void OnTouching<TManifold>(Contacts<TManifold> contacts) where TManifold : unmanaged, IContactManifold<TManifold>

Parameters

contacts Contacts<TManifold>

Data associated with this contact event.

Type Parameters

TManifold

Type of the contact manifold detected.