14#ifndef COLLISIONHANDLER_H
15#define COLLISIONHANDLER_H
30class EXPCL_PANDA_COLLIDE CollisionHandler :
public TypedReferenceCount {
47 static void init_type() {
48 TypedReferenceCount::init_type();
50 TypedReferenceCount::get_class_type());
53 return get_class_type();
55 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
58 bool _wants_all_potential_collidees;
64 friend class CollisionTraverser;
Defines a single collision event.
bool wants_all_potential_collidees() const
Returns true if handler wants to know about all solids that are within the collider's bounding volume...
virtual bool end_group()
Called by the CollisionTraverser at the completion of all collision detections for this traversal.
virtual void begin_group()
Will be called by the CollisionTraverser before a new traversal is begun.
virtual void add_entry(CollisionEntry *entry)
Called between a begin_group() .
void set_root(const NodePath &root)
Sets the root of the collision traversal.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.