Table of Contents

Struct Contacts<TManifold>

Namespace
Stride.BepuPhysics.Definitions.Contacts
Assembly
Stride.BepuPhysics.dll

Enumerate over this structure to get individual contact

public readonly ref struct Contacts<TManifold> where TManifold : unmanaged, IContactManifold<TManifold>

Type Parameters

TManifold
Inherited Members

Properties

EventSource

The collidable which is bound to this IContactHandler

public required CollidableComponent EventSource { get; init; }

Property Value

CollidableComponent

Groups

Contact group registered between these two bodies, one per compound child hit

public required ReadOnlySpan<ContactGroup<TManifold>> Groups { get; init; }

Property Value

ReadOnlySpan<ContactGroup<TManifold>>

IsSourceOriginalA

Whether EventSource maps to the unsorted, original A

public required bool IsSourceOriginalA { get; init; }

Property Value

bool

Other

The other collidable

public required CollidableComponent Other { get; init; }

Property Value

CollidableComponent

Simulation

The simulation this contact occured in

public required BepuSimulation Simulation { get; init; }

Property Value

BepuSimulation

Methods

ComputeImpactForce(Contact<TManifold>)

[Pure]
public Vector3 ComputeImpactForce(Contact<TManifold> contact)

Parameters

contact Contact<TManifold>

Returns

Vector3

GetEnumerator()

Enumerate over this structure to get individual contact

public Contacts<TManifold>.Enumerator GetEnumerator()

Returns

Contacts<TManifold>.Enumerator