Struct NarrowphaseCallbacks

Namespace
Game.Shared.Physics
Assembly
Game.dll
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

workerIndex int
a CollidableReference
b CollidableReference
speculativeMargin float

Returns

bool

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

workerIndex int
pair CollidablePair
childIndexA int
childIndexB int

Returns

bool

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

workerIndex int
pair CollidablePair
childIndexA int
childIndexB int
manifold ConvexContactManifold

Returns

bool

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 int
pair CollidablePair
manifold TManifold
pairMaterial PairMaterialProperties

Returns

bool

Type Parameters

TManifold

Dispose()

public void Dispose()

Initialize(Simulation)

Performs initialisation logic.

public void Initialize(Simulation simulation)

Parameters

simulation Simulation