Class ConvexTwoBodyAccessor<TConstraintDescription, TPrestepData, TAccumulatedImpulses, TContactImpulses>
- Namespace
- BepuPhysics.CollisionDetection
- Assembly
- BepuPhysics.dll
public class ConvexTwoBodyAccessor<TConstraintDescription, TPrestepData, TAccumulatedImpulses, TContactImpulses> : ContactConstraintAccessor<TConstraintDescription, TwoBodyHandles, TPrestepData, TAccumulatedImpulses, TContactImpulses> where TConstraintDescription : unmanaged, IConvexTwoBodyContactConstraintDescription<TConstraintDescription> where TPrestepData : unmanaged, ITwoBodyConvexContactPrestep<TPrestepData> where TAccumulatedImpulses : unmanaged, IConvexContactAccumulatedImpulses<TAccumulatedImpulses> where TContactImpulses : unmanaged
Type Parameters
TConstraintDescription
TPrestepData
TAccumulatedImpulses
TContactImpulses
- Inheritance
-
ContactConstraintAccessor<TConstraintDescription, TwoBodyHandles, TPrestepData, TAccumulatedImpulses, TContactImpulses>ConvexTwoBodyAccessor<TConstraintDescription, TPrestepData, TAccumulatedImpulses, TContactImpulses>
- Inherited Members
Methods
ExtractContactData<TExtractor>(in ConstraintLocation, Solver, ref TExtractor)
Extracts references to data from a contact constraint of the accessor's type.
public override void ExtractContactData<TExtractor>(in ConstraintLocation constraintLocation, Solver solver, ref TExtractor extractor) where TExtractor : struct, ISolverContactDataExtractor
Parameters
constraintLocation
ConstraintLocationLocation of the constraint in the solver.
solver
SolverSolver in which the constraint lives.
extractor
TExtractorExtractor to handle the extracted references.
Type Parameters
TExtractor
Type of the extractor to handle the extracted references.
ExtractContactPrestepAndImpulses<TExtractor>(in ConstraintLocation, Solver, ref TExtractor)
Extracts references to data from a contact constraint of the accessor's type.
public override void ExtractContactPrestepAndImpulses<TExtractor>(in ConstraintLocation constraintLocation, Solver solver, ref TExtractor extractor) where TExtractor : struct, ISolverContactPrestepAndImpulsesExtractor
Parameters
constraintLocation
ConstraintLocationLocation of the constraint in the solver.
solver
SolverSolver in which the constraint lives.
extractor
TExtractorExtractor to handle the extracted references.
Type Parameters
TExtractor
Type of the extractor to handle the extracted references.
UpdateConstraintForManifold<TContactManifold, TCallBodyHandles, TCallbacks>(NarrowPhase<TCallbacks>, int, int, ref CollidablePair, ref TContactManifold, ref PairMaterialProperties, TCallBodyHandles)
public override void UpdateConstraintForManifold<TContactManifold, TCallBodyHandles, TCallbacks>(NarrowPhase<TCallbacks> narrowPhase, int manifoldTypeAsConstraintType, int workerIndex, ref CollidablePair pair, ref TContactManifold manifoldPointer, ref PairMaterialProperties material, TCallBodyHandles bodyHandles) where TCallbacks : struct, INarrowPhaseCallbacks
Parameters
narrowPhase
NarrowPhase<TCallbacks>manifoldTypeAsConstraintType
intworkerIndex
intpair
CollidablePairmanifoldPointer
TContactManifoldmaterial
PairMaterialPropertiesbodyHandles
TCallBodyHandles
Type Parameters
TContactManifold
TCallBodyHandles
TCallbacks