OdeUtil
from panda3d.ode import OdeUtil
- class OdeUtil
Bases:
DTOOL_SUPER_BASE
Inheritance diagram
- __init__(*args, **kwargs)
- areConnected()
C++ Interface: are_connected(const OdeBody body1, const OdeBody body2)
- /**
Returns 1 if the given bodies are connected by a joint, returns 0
otherwise.
*/
- areConnectedExcluding()
C++ Interface: are_connected_excluding(const OdeBody body1, const OdeBody body2, 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. 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.
*/
- are_connected()
C++ Interface: are_connected(const OdeBody body1, const OdeBody body2)
- /**
Returns 1 if the given bodies are connected by a joint, returns 0
otherwise.
*/
- are_connected_excluding()
C++ Interface: are_connected_excluding(const OdeBody body1, const OdeBody body2, 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. 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.
*/
- collide()
C++ Interface: collide(const OdeGeom geom1, const OdeGeom geom2, int max_contacts)
- /**
Given two geometry objects that potentially touch (geom1 and geom2),
generate contact information for them. Returns an OdeCollisionEntry.
*/
- collide2()
C++ Interface: collide2(const OdeGeom geom1, const OdeGeom geom2, object arg, object callback)
- getConnectingJoint()
C++ Interface: get_connecting_joint(const OdeBody body1, const OdeBody body2)
- /**
Returns the joint that connects the given bodies.
*/
- getConnectingJointList()
C++ Interface: get_connecting_joint_list(const OdeBody body1, const OdeBody body2)
- /**
Returns a collection of joints connecting the specified bodies.
*/
- getInfinity()
C++ Interface: get_infinity()
// RAU we can’t access OC_infinity as constants are not exposed in python
- get_connecting_joint()
C++ Interface: get_connecting_joint(const OdeBody body1, const OdeBody body2)
- /**
Returns the joint that connects the given bodies.
*/
- get_connecting_joint_list()
C++ Interface: get_connecting_joint_list(const OdeBody body1, const OdeBody body2)
- /**
Returns a collection of joints connecting the specified bodies.
*/
- get_infinity()
C++ Interface: get_infinity()
// RAU we can’t access OC_infinity as constants are not exposed in python
- randGetSeed()
C++ Interface: rand_get_seed()
- randSetSeed()
C++ Interface: rand_set_seed(int s)
- rand_get_seed()
C++ Interface: rand_get_seed()
- rand_set_seed()
C++ Interface: rand_set_seed(int s)
- spaceToGeom()
C++ Interface: space_to_geom(const OdeSpace space)
- space_to_geom()
C++ Interface: space_to_geom(const OdeSpace space)