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
protected ContactConstraintAccessor()
Methods
protected static void CopyContactData(ref ConvexContactManifold manifold, out ConstraintCache constraintCache, out TConstraintDescription description)
Parameters
manifold ConvexContactManifold
constraintCache ConstraintCache
description TConstraintDescription
protected static void CopyContactData(ref NonconvexContactManifold manifold, ref ConstraintCache constraintCache, ref ConstraintContactData targetContacts)
Parameters
manifold NonconvexContactManifold
constraintCache ConstraintCache
targetContacts ConstraintContactData
protected static void CopyContactData(ref NonconvexContactManifold manifold, ref ConstraintCache constraintCache, ref NonconvexConstraintContactData targetContacts)
Parameters
manifold NonconvexContactManifold
constraintCache ConstraintCache
targetContacts NonconvexConstraintContactData
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
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
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
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