27class EXPCL_PANDAODE OdeCollisionEntry :
public TypedReferenceCount {
29 virtual ~OdeCollisionEntry();
43 INLINE
operator bool ()
const;
47 INLINE OdeCollisionEntry();
48 dGeomID _geom1, _geom2;
49 dBodyID _body1, _body2;
57 static void init_type() {
58 TypedReferenceCount::init_type();
60 TypedReferenceCount::get_class_type());
62 virtual TypeHandle get_type()
const {
63 return get_class_type();
65 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
69 static TypeHandle _type_handle;
71 friend class OdeSpace;
get_num_contacts
Returns the number of contacts in the collision.
get_contact_point
Returns the nth contact point in the collision.
OdeGeom get_geom1() const
Returns the first geom in the collision.
get_contact_geom
Returns the nth contact geom in the collision.
OdeBody get_body2() const
Returns the second body in the collision.
bool is_empty() const
Returns true if the entry holds no contacts.
OdeBody get_body1() const
Returns the first body in the collision.
OdeGeom get_geom2() const
Returns the second geom in the collision.
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(),...