39 static const int MAX_CONTACTS;
49 INLINE
void set_cleanup(
int mode);
50 INLINE
int get_cleanup()
const;
51 int query(
const OdeGeom& geom)
const;
52 int query(
const OdeSpace& space)
const;
53 INLINE
int get_num_geoms()
const;
54 INLINE
void get_AABB(LVecBase3f &min, LVecBase3f &max)
const;
55 EXTENSION(INLINE PyObject *get_AA_bounds()
const);
56 INLINE
int is_space();
57 INLINE
int get_class()
const;
58 INLINE
void set_category_bits(
const BitMask32 &bits);
59 INLINE
void set_collide_bits(
const BitMask32 &bits);
63 INLINE
void disable();
64 INLINE
int is_enabled();
65 void set_auto_collide_world(
OdeWorld&);
78 virtual void write(std::ostream &out = std::cout,
unsigned int indent=0)
const;
79 operator bool ()
const;
85 EXTENSION(PyObject *convert()
const);
86 EXTENSION(INLINE PyObject *get_converted_geom(
int i)
const);
87 EXTENSION(INLINE PyObject *get_converted_space()
const);
90 EXTENSION(
int collide(PyObject* arg, PyObject* near_callback));
91 int set_collide_id(
int collide_id, dGeomID
id);
92 int set_collide_id(
OdeGeom& geom,
int collide_id);
93 void set_surface_type(
int surface_type, dGeomID
id);
94 void set_surface_type(
OdeGeom& geom,
int surface_type);
95 int get_surface_type(dGeomID o1);
96 int get_surface_type(
OdeGeom& geom);
97 int get_collide_id(dGeomID o1);
98 int get_collide_id(
OdeGeom& geom);
100 INLINE
void set_collision_event(
const std::string &event_name);
101 INLINE std::string get_collision_event();
104 static void auto_callback(
void*, dGeomID, dGeomID);
106 INLINE dSpaceID
get_id()
const;
107 static OdeWorld* _static_auto_collide_world;
108 static OdeSpace* _static_auto_collide_space;
109 static dJointGroupID _static_auto_collide_joint_group;
110 static int contactCount;
111 std::string _collision_event;
116 dJointGroupID _auto_collide_joint_group;
125 TypedObject::get_class_type());
128 return get_class_type();
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
bool is_empty() const
Returns true if the ID is 0, meaning the OdeGeom does not point to a valid geom.
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.
This is an abstract class that all classes which use TypeHandle, and also provide virtual functions t...
dGeomID get_id() const
Returns the underlying dGeomID.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.