Panda3D
|
Static Public Member Functions | |
static int | are_connected (const OdeBody &body1, const OdeBody &body2) |
Returns 1 if the given bodies are connected by a joint, returns 0 otherwise. More... | |
static int | are_connected_excluding (const OdeBody &body1, const OdeBody &body2, const int joint_type) |
Returns 1 if the given bodies are connected by a joint that does not match the given joint_type, returns 0 otherwise. More... | |
static OdeJoint | get_connecting_joint (const OdeBody &body1, const OdeBody &body2) |
Returns the joint that connects the given bodies. More... | |
static OdeJointCollection | get_connecting_joint_list (const OdeBody &body1, const OdeBody &body2) |
Returns a collection of joints connecting the specified bodies. More... | |
static dReal | get_infinity () |
static | PT (OdeCollisionEntry) collide(const OdeGeom &geom1 |
static int | rand_get_seed () |
static void | rand_set_seed (int s) |
static OdeGeom | space_to_geom (const OdeSpace &space) |
Public Attributes | |
static const OdeGeom & | geom2 |
static const OdeGeom const short int | max_contacts = 150) |
Static Public Attributes | |
static dReal | OC_infinity = dInfinity |
Returns 1 if the given bodies are connected by a joint, returns 0 otherwise.
Definition at line 58 of file odeUtil.cxx.
References are_connected_excluding(), and OdeBody::get_id().
Referenced by get_connecting_joint_list().
|
static |
Returns 1 if the given bodies are connected by a joint that does not match the given joint_type, returns 0 otherwise.
This is useful for deciding whether to add contact joints between two bodies: if they are already connected by non-contact joints then it may not be appropriate to add contacts, however it is okay to add more contact between bodies that already have contacts.
Definition at line 75 of file odeUtil.cxx.
References OdeBody::get_id(), OdeGeom::get_id(), and OdeSpace::get_id().
Referenced by are_connected().
Returns the joint that connects the given bodies.
Definition at line 25 of file odeUtil.cxx.
References get_connecting_joint_list(), and OdeBody::get_id().
|
static |
Returns a collection of joints connecting the specified bodies.
Definition at line 36 of file odeUtil.cxx.
References are_connected(), and OdeBody::get_id().
Referenced by get_connecting_joint().