naiveBroadPhaseCollisionDetector

Configures the force simulation to use the naive broad-phase collision detection algorithm.

The naiveBroadPhaseCollisionDetector method sets the simulation's broad-phase collision detection strategy to an instance of NaiveBroadPhaseCollisionDetector. This algorithm identifies pairs of potentially overlapping bodies by performing an exhaustive comparison of their bounding volumes. While simple and straightforward, this approach has O(n^2) complexity and may not efficiently scale for simulations involving many bodies.

This method directly assigns the NaiveBroadPhaseCollisionDetector instance to the broadPhaseCollisionDetector property of the simulation.