Table of Contents

Class ContactConstraintAccessor<TConstraintDescription, TBodyHandles, TPrestepData, TAccumulatedImpulses, TContactImpulses>

Namespace
BepuPhysics.CollisionDetection
Assembly
BepuPhysics.dll
public abstract class ContactConstraintAccessor<TConstraintDescription, TBodyHandles, TPrestepData, TAccumulatedImpulses, TContactImpulses> : ContactConstraintAccessor where TConstraintDescription : unmanaged, IConstraintDescription<TConstraintDescription> where TBodyHandles : unmanaged where TPrestepData : unmanaged where TContactImpulses : unmanaged

Type Parameters

TConstraintDescription
TBodyHandles
TPrestepData
TAccumulatedImpulses
TContactImpulses
Inheritance
ContactConstraintAccessor<TConstraintDescription, TBodyHandles, TPrestepData, TAccumulatedImpulses, TContactImpulses>
Derived
Inherited Members

Constructors

ContactConstraintAccessor()

protected ContactConstraintAccessor()

Methods

CopyContactData(ref ConvexContactManifold, out ConstraintCache, out TConstraintDescription)

protected static void CopyContactData(ref ConvexContactManifold manifold, out ConstraintCache constraintCache, out TConstraintDescription description)

Parameters

manifold ConvexContactManifold
constraintCache ConstraintCache
description TConstraintDescription

CopyContactData(ref NonconvexContactManifold, ref ConstraintCache, ref ConstraintContactData)

protected static void CopyContactData(ref NonconvexContactManifold manifold, ref ConstraintCache constraintCache, ref ConstraintContactData targetContacts)

Parameters

manifold NonconvexContactManifold
constraintCache ConstraintCache
targetContacts ConstraintContactData

CopyContactData(ref NonconvexContactManifold, ref ConstraintCache, ref NonconvexConstraintContactData)

protected static void CopyContactData(ref NonconvexContactManifold manifold, ref ConstraintCache constraintCache, ref NonconvexConstraintContactData targetContacts)

Parameters

manifold NonconvexContactManifold
constraintCache ConstraintCache
targetContacts NonconvexConstraintContactData

DeterministicallyAdd<TCallbacks>(int, OverlapWorker[], ref QuickList<SortConstraintTarget>, Simulation, PairCache)

public override void DeterministicallyAdd<TCallbacks>(int typeIndex, NarrowPhase<TCallbacks>.OverlapWorker[] overlapWorkers, ref QuickList<NarrowPhase<TCallbacks>.SortConstraintTarget> constraintsOfType, Simulation simulation, PairCache pairCache) where TCallbacks : struct, INarrowPhaseCallbacks

Parameters

typeIndex int
overlapWorkers OverlapWorker[]
constraintsOfType QuickList<NarrowPhase<TCallbacks>.SortConstraintTarget>
simulation Simulation
pairCache PairCache

Type Parameters

TCallbacks

FlushSequentially<TCallbacks>(ref UntypedList, int, Simulation, PairCache)

public override void FlushSequentially<TCallbacks>(ref UntypedList list, int narrowPhaseConstraintTypeId, Simulation simulation, PairCache pairCache) where TCallbacks : struct, INarrowPhaseCallbacks

Parameters

list UntypedList
narrowPhaseConstraintTypeId int
simulation Simulation
pairCache PairCache

Type Parameters

TCallbacks

FlushWithSpeculativeBatches<TCallbacks>(ref UntypedList, int, ref Buffer<Buffer<ushort>>, Simulation, PairCache)

public override void FlushWithSpeculativeBatches<TCallbacks>(ref UntypedList list, int narrowPhaseConstraintTypeId, ref Buffer<Buffer<ushort>> speculativeBatchIndices, Simulation simulation, PairCache pairCache) where TCallbacks : struct, INarrowPhaseCallbacks

Parameters

list UntypedList
narrowPhaseConstraintTypeId int
speculativeBatchIndices Buffer<Buffer<ushort>>
simulation Simulation
pairCache PairCache

Type Parameters

TCallbacks

UpdateConstraint<TCallbacks, TCallBodyHandles>(NarrowPhase<TCallbacks>, int, int, ref CollidablePair, ref ConstraintCache, int, ref TConstraintDescription, TCallBodyHandles)

protected static void UpdateConstraint<TCallbacks, TCallBodyHandles>(NarrowPhase<TCallbacks> narrowPhase, int manifoldTypeAsConstraintType, int workerIndex, ref CollidablePair pair, ref ConstraintCache constraintCache, int newContactCount, ref TConstraintDescription description, TCallBodyHandles bodyHandles) where TCallbacks : struct, INarrowPhaseCallbacks

Parameters

narrowPhase NarrowPhase<TCallbacks>
manifoldTypeAsConstraintType int
workerIndex int
pair CollidablePair
constraintCache ConstraintCache
newContactCount int
description TConstraintDescription
bodyHandles TCallBodyHandles

Type Parameters

TCallbacks
TCallBodyHandles