14 #ifndef COLLISIONRECORDER_H
15 #define COLLISIONRECORDER_H
24 #ifdef DO_COLLISION_RECORDING
31 class EXPCL_PANDA_COLLIDE CollisionRecorder :
public TypedObject {
35 virtual ~CollisionRecorder();
38 void output(std::ostream &out)
const;
41 virtual void begin_traversal();
42 virtual void collision_tested(
const CollisionEntry &entry,
bool detected);
43 virtual void end_traversal();
57 TypedObject::get_class_type());
60 return get_class_type();
Defines a single collision event.
This class manages the traversal through the scene graph to detect collisions.
TypeHandle is the identifier used to differentiate C++ class types.
This is an abstract class that all classes which use TypeHandle, and also provide virtual functions t...
static void init_type()
This function is declared non-inline to work around a compiler bug in g++ 2.96.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.