Class BroadPhaseCollisionAlgorithm¶
Defined in File broadphasecollisionalgorithm.hpp
Inheritance Relationships¶
Derived Types¶
public legion::physics::BroadphaseBruteforce
(Class BroadphaseBruteforce)public legion::physics::BroadphaseUniformGrid
(Class BroadphaseUniformGrid)public legion::physics::BroadphaseUniformGridNoCaching
(Class BroadphaseUniformGridNoCaching)
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 componentsmanifoldPrecursorGrouping
: 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
¶
-
virtual const std::vector<std::vector<physics_manifold_precursor>> &