Delegate BroadPhase.RefinementScheduler
- Namespace
- BepuPhysics.CollisionDetection
- Assembly
- BepuPhysics.dll
Returns the size and number of refinements to execute during the broad phase.
public delegate void BroadPhase.RefinementScheduler(int frameIndex, in Tree tree, out int rootRefinementSize, out int subtreeRefinementCount, out int subtreeRefinementSize, out bool usePriorityQueue)
Parameters
frameIndex
intIndex of the frame as tracked by the broad phase.
tree
TreeTree being considered for refinement.
rootRefinementSize
intSize of the root refinement. If zero or negative, no root refinement will be performed.
subtreeRefinementCount
intNumber of subtree refinements to perform. Can be zero.
subtreeRefinementSize
intTarget size of the subtree refinements.
usePriorityQueue
boolTrue if the root refinement should use a priority queue during subtree collection to find larger nodes, false if it should try to collect a more balanced tree.