Struct NarrowPhase<TCallbacks>.PendingConstraintAddCache
- Namespace
- BepuPhysics.CollisionDetection
- Assembly
- BepuPhysics.dll
public struct NarrowPhase<TCallbacks>.PendingConstraintAddCache
- Inherited Members
-
Constructors
PendingConstraintAddCache(BufferPool, int)
public PendingConstraintAddCache(BufferPool pool, int minimumConstraintCountPerCache = 128)
Parameters
pool BufferPool
minimumConstraintCountPerCache int
Methods
AddConstraint<TBodyHandles, TDescription, TContactImpulses>(int, CollidablePair, PairCacheChangeIndex, TBodyHandles, ref TDescription, ref TContactImpulses)
public void AddConstraint<TBodyHandles, TDescription, TContactImpulses>(int manifoldConstraintType, CollidablePair pair, PairCacheChangeIndex pairCacheChange, TBodyHandles bodyHandles, ref TDescription constraintDescription, ref TContactImpulses impulses) where TBodyHandles : unmanaged where TDescription : unmanaged, IConstraintDescription<TDescription>
Parameters
manifoldConstraintType int
pair CollidablePair
pairCacheChange PairCacheChangeIndex
bodyHandles TBodyHandles
constraintDescription TDescription
impulses TContactImpulses
Type Parameters
TBodyHandles
TDescription
TContactImpulses
DeterministicAdd<TBodyHandles, TDescription, TContactImpulses>(int, ref SortConstraintTarget, OverlapWorker[], Simulation, ref PairCache)
public static void DeterministicAdd<TBodyHandles, TDescription, TContactImpulses>(int typeIndex, ref NarrowPhase<TCallbacks>.SortConstraintTarget target, NarrowPhase<TCallbacks>.OverlapWorker[] overlapWorkers, Simulation simulation, ref PairCache pairCache) where TBodyHandles : unmanaged where TDescription : unmanaged, IConstraintDescription<TDescription>
Parameters
typeIndex int
target NarrowPhase<TCallbacks>.SortConstraintTarget
overlapWorkers OverlapWorker[]
simulation Simulation
pairCache PairCache
Type Parameters
TBodyHandles
TDescription
TContactImpulses
Dispose()
SequentialAddToSimulationSpeculative<TBodyHandles, TDescription, TContactImpulses>(ref UntypedList, int, ref Buffer<Buffer<ushort>>, Simulation, PairCache)
public static void SequentialAddToSimulationSpeculative<TBodyHandles, TDescription, TContactImpulses>(ref UntypedList list, int narrowPhaseConstraintTypeId, ref Buffer<Buffer<ushort>> speculativeBatchIndices, Simulation simulation, PairCache pairCache) where TBodyHandles : unmanaged where TDescription : unmanaged, IConstraintDescription<TDescription>
Parameters
list UntypedList
narrowPhaseConstraintTypeId int
speculativeBatchIndices Buffer<Buffer<ushort>>
simulation Simulation
pairCache PairCache
Type Parameters
TBodyHandles
TDescription
TContactImpulses
SequentialAddToSimulation<TBodyHandles, TDescription, TContactImpulses>(ref UntypedList, int, Simulation, PairCache)
public static void SequentialAddToSimulation<TBodyHandles, TDescription, TContactImpulses>(ref UntypedList list, int narrowPhaseConstraintTypeId, Simulation simulation, PairCache pairCache) where TBodyHandles : unmanaged where TDescription : unmanaged, IConstraintDescription<TDescription>
Parameters
list UntypedList
narrowPhaseConstraintTypeId int
simulation Simulation
pairCache PairCache
Type Parameters
TBodyHandles
TDescription
TContactImpulses