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
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
Other
The other collidable
public required CollidableComponent Other { get; init; }
Property Value
Simulation
The simulation this contact occured in
public required BepuSimulation Simulation { get; init; }
Property Value
Methods
ComputeImpactForce(Contact<TManifold>)
[Pure]
public Vector3 ComputeImpactForce(Contact<TManifold> contact)
Parameters
contactContact<TManifold>
Returns
GetEnumerator()
Enumerate over this structure to get individual contact
public Contacts<TManifold>.Enumerator GetEnumerator()
Returns
- Contacts<TManifold>.Enumerator