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
frameIndexintIndex of the frame as tracked by the broad phase.
treeTreeTree being considered for refinement.
rootRefinementSizeintSize of the root refinement. If zero or negative, no root refinement will be performed.
subtreeRefinementCountintNumber of subtree refinements to perform. Can be zero.
subtreeRefinementSizeintTarget size of the subtree refinements.
usePriorityQueueboolTrue 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.