Class BroadPhaseCollisionAlgorithm

Inheritance Relationships

Derived Types

Class Documentation

class legion::physics::BroadPhaseCollisionAlgorithm

The base class for a broad phase collision detection.

Subclassed by legion::physics::BroadphaseBruteforce, legion::physics::BroadphaseUniformGrid, legion::physics::BroadphaseUniformGridNoCaching

Public Functions

virtual const std::vector<std::vector<physics_manifold_precursor>> &collectPairs(std::vector<physics_manifold_precursor> &&manifoldPrecursors) = 0

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

inline virtual void debugDraw()

Protected Attributes

std::vector<std::vector<physics_manifold_precursor>> m_groupings