Panda3D
Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
OdeUtil Class Reference

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 OdeGeomgeom2
 
static const OdeGeom const short int max_contacts = 150)
 

Static Public Attributes

static dReal OC_infinity = dInfinity
 

Detailed Description

Definition at line 32 of file odeUtil.h.

Member Function Documentation

◆ are_connected()

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 50 of file odeUtil.cxx.

References OdeBody::get_id().

◆ are_connected_excluding()

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 63 of file odeUtil.cxx.

References OdeBody::get_id().

◆ get_connecting_joint()

OdeJoint OdeUtil::get_connecting_joint ( const OdeBody body1,
const OdeBody body2 
)
static

Returns the joint that connects the given bodies.

Definition at line 22 of file odeUtil.cxx.

References OdeBody::get_id().

◆ get_connecting_joint_list()

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 30 of file odeUtil.cxx.

References OdeBody::get_id().


The documentation for this class was generated from the following files: