Table of Contents

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 int

Index of the frame as tracked by the broad phase.

tree Tree

Tree being considered for refinement.

rootRefinementSize int

Size of the root refinement. If zero or negative, no root refinement will be performed.

subtreeRefinementCount int

Number of subtree refinements to perform. Can be zero.

subtreeRefinementSize int

Target size of the subtree refinements.

usePriorityQueue bool

True 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.