newton.BroadPhaseMode#

class newton.BroadPhaseMode(value)[source]#

Bases: IntEnum

Broad phase collision detection mode.

EXPLICIT = 2#

Use precomputed shape pairs (most efficient when pairs are known ahead of time)

NXN = 0#

All-pairs broad phase with AABB checks (simple, O(N²) but good for small scenes)

SAP = 1#

Sweep and Prune broad phase with AABB sorting (faster for larger scenes, O(N log N))