Interface ICollisionTestContinuation
- Namespace
- BepuPhysics.CollisionDetection
- Assembly
- BepuPhysics.dll
Defines a type which includes information necessary to apply some form of post processing to a collision test result.
public interface ICollisionTestContinuation
Methods
Create(int, BufferPool)
Creates a collision test continuation with the given number of slots for subpairs.
void Create(int slots, BufferPool pool)
Parameters
slotsintNumber of subpair slots to include in the continuation.
poolBufferPoolPool to take resources from.
OnChildCompleted<TCallbacks>(ref PairContinuation, ref ConvexContactManifold, ref CollisionBatcher<TCallbacks>)
Handles what to do next when the child pair has finished execution and the resulting manifold is available.
void OnChildCompleted<TCallbacks>(ref PairContinuation report, ref ConvexContactManifold manifold, ref CollisionBatcher<TCallbacks> batcher) where TCallbacks : struct, ICollisionCallbacks
Parameters
reportPairContinuationContinuation instance being considered.
manifoldConvexContactManifoldContact manifold for the child pair.
batcherCollisionBatcher<TCallbacks>Collision batcher processing the pair.
Type Parameters
TCallbacksType of the callbacks used in the batcher.
OnUntestedChildCompleted<TCallbacks>(ref PairContinuation, ref CollisionBatcher<TCallbacks>)
Handles what to do next when the child pair was rejected for testing, and no manifold exists.
void OnUntestedChildCompleted<TCallbacks>(ref PairContinuation report, ref CollisionBatcher<TCallbacks> batcher) where TCallbacks : struct, ICollisionCallbacks
Parameters
reportPairContinuationContinuation instance being considered.
batcherCollisionBatcher<TCallbacks>Collision batcher processing the pair.
Type Parameters
TCallbacksType of the callbacks used in the batcher.
TryFlush<TCallbacks>(int, ref CollisionBatcher<TCallbacks>)
Checks if the parent pair is complete and should be flushed.
bool TryFlush<TCallbacks>(int pairId, ref CollisionBatcher<TCallbacks> batcher) where TCallbacks : struct, ICollisionCallbacks
Parameters
pairIdintId of the pair to attempt to flush.
batcherCollisionBatcher<TCallbacks>Collision batcher processing the pair.
Returns
- bool
True if the pair was done and got flushed, false otherwise.
Type Parameters
TCallbacksType of the callbacks used in the batcher.