Class BroadphaseBruteforce

Inheritance Relationships

Base Type

Class Documentation

class legion::physics::BroadphaseBruteforce : public legion::physics::BroadPhaseCollisionAlgorithm

Public Functions

inline virtual const std::vector<std::vector<physics_manifold_precursor>> &collectPairs(std::vector<physics_manifold_precursor> &&manifoldPrecursors) override

Collects collider pairs that have a chance of colliding and should be checked in narrow-phase collision detection.

Parameters
  • manifoldPrecursors: all the physics components

  • manifoldPrecursorGrouping: a list-list of colliders that have a chance of colliding and should be checked