Table of Contents

Struct ContactGroup<TManifold>

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

A set of contacts generated from two collidables

public struct ContactGroup<TManifold> where TManifold : unmanaged, IContactManifold<TManifold>

Type Parameters

TManifold
Inherited Members

Constructors

ContactGroup(ref TManifold, CollidablePair, int, int)

public ContactGroup(ref TManifold manifold, CollidablePair pair, int childIndexA, int childIndexB)

Parameters

manifold TManifold
pair CollidablePair
childIndexA int
childIndexB int

Fields

ChildIndexA

When BepuPhysics.CollisionDetection.CollidablePair.A has a CompoundCollider, this is the index of the collider in that collection which is in contact.

public readonly int ChildIndexA

Field Value

int

ChildIndexB

When BepuPhysics.CollisionDetection.CollidablePair.B has a CompoundCollider, this is the index of the collider in that collection which is in contact.

public readonly int ChildIndexB

Field Value

int

Manifold

The manifold associated with this collision

public TManifold Manifold

Field Value

TManifold

Pair

The raw id for the two collidables that generated this contact group

public readonly CollidablePair Pair

Field Value

CollidablePair

SortedPair

Pair sorted in a deterministic order

public readonly (uint A, uint B) SortedPair

Field Value

(uint A, uint B)