Struct NarrowphaseCallbacks
public struct NarrowphaseCallbacks : INarrowPhaseCallbacks
- Implements
-
INarrowPhaseCallbacks
- Inherited Members
Methods
AllowContactGeneration(int, CollidableReference, CollidableReference, ref float)
Chooses whether to allow contact generation for two overlapping collidable objects.
public bool AllowContactGeneration(int workerIndex, CollidableReference a, CollidableReference b, ref float speculativeMargin)
Parameters
Returns
AllowContactGeneration(int, CollidablePair, int, int)
Chooses whether to allow contact generation for two overlapping collidable objects, in a compound-including pair.
public bool AllowContactGeneration(int workerIndex, CollidablePair pair, int childIndexA, int childIndexB)
Parameters
Returns
ConfigureContactManifold(int, CollidablePair, int, int, ref ConvexContactManifold)
Provides a notification that a manifold has been created between the children of two collidables in a compound-including pair. Offers an opportunity to change the manifold's details.
public bool ConfigureContactManifold(int workerIndex, CollidablePair pair, int childIndexA, int childIndexB, ref ConvexContactManifold manifold)
Parameters
Returns
ConfigureContactManifold<TManifold>(int, CollidablePair, ref TManifold, out PairMaterialProperties)
Provides a notification that a manifold has been created for a pair. Offers an opportunity to change the manifold's details.
public bool ConfigureContactManifold<TManifold>(int workerIndex, CollidablePair pair, ref TManifold manifold, out PairMaterialProperties pairMaterial) where TManifold : unmanaged, IContactManifold<TManifold>
Parameters
workerIndex
intpair
CollidablePairmanifold
TManifoldpairMaterial
PairMaterialProperties
Returns
Type Parameters
TManifold
Dispose()
public void Dispose()
Initialize(Simulation)
Performs initialisation logic.
public void Initialize(Simulation simulation)
Parameters
simulation
Simulation