CollisionHandlerQueue
-
class CollisionHandlerQueue
Bases:
CollisionHandler
A special kind of
CollisionHandler
that does nothing except remember the CollisionEntries detected the last pass. This set of CollisionEntries may then be queried by the calling function. It’s primarily useful when a simple intersection test is being made, e.g. for picking from the window.Inheritance diagram
-
CollisionHandlerQueue(void)
-
CollisionHandlerQueue(CollisionHandlerQueue const&) = default
-
void clear_entries(void)
Removes all the entries from the queue.
-
static TypeHandle get_class_type(void)
-
CollisionEntry *get_entry(int n) const
Returns the nth
CollisionEntry
detected last pass.
-
int get_num_entries(void) const
Returns the number of CollisionEntries detected last pass.
-
void output(std::ostream &out) const
-
void sort_entries(void)
Sorts all the detected collisions front-to-back by from_intersection_point() so that those intersection points closest to the collider’s origin (e.g., the center of the
CollisionSphere
, or the point_a of aCollisionSegment
) appear first.
-
void write(std::ostream &out, int indent_level = 0) const
-
CollisionHandlerQueue(void)