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. | |
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. | |
static OdeJoint | get_connecting_joint (const OdeBody &body1, const OdeBody &body2) |
Returns the joint that connects the given bodies. | |
static OdeJointCollection | get_connecting_joint_list (const OdeBody &body1, const OdeBody &body2) |
Returns a collection of joints connecting the specified bodies. | |
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 |
int OdeUtil::are_connected | ( | const OdeBody & | body1, |
const OdeBody & | body2 | ||
) | [static] |
Returns 1 if the given bodies are connected by a joint, returns 0 otherwise.
Definition at line 70 of file odeUtil.cxx.
References OdeBody::get_id().
int OdeUtil::are_connected_excluding | ( | const OdeBody & | body1, |
const OdeBody & | body2, | ||
const int | joint_type | ||
) | [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 87 of file odeUtil.cxx.
References OdeBody::get_id().
OdeJoint OdeUtil::get_connecting_joint | ( | const OdeBody & | body1, |
const OdeBody & | body2 | ||
) | [static] |
Returns the joint that connects the given bodies.
Definition at line 37 of file odeUtil.cxx.
References OdeBody::get_id().
OdeJointCollection OdeUtil::get_connecting_joint_list | ( | const OdeBody & | body1, |
const OdeBody & | body2 | ||
) | [static] |
Returns a collection of joints connecting the specified bodies.
Definition at line 48 of file odeUtil.cxx.
References OdeBody::get_id().