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
TConstraintDescriptionTPrestepDataTAccumulatedImpulsesTContactImpulses
- 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
constraintLocationConstraintLocationLocation of the constraint in the solver.
solverSolverSolver in which the constraint lives.
extractorTExtractorExtractor to handle the extracted references.
Type Parameters
TExtractorType 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
constraintLocationConstraintLocationLocation of the constraint in the solver.
solverSolverSolver in which the constraint lives.
extractorTExtractorExtractor to handle the extracted references.
Type Parameters
TExtractorType 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
narrowPhaseNarrowPhase<TCallbacks>manifoldTypeAsConstraintTypeintworkerIndexintpairCollidablePairmanifoldPointerTContactManifoldmaterialPairMaterialPropertiesbodyHandlesTCallBodyHandles
Type Parameters
TContactManifoldTCallBodyHandlesTCallbacks