panda3d.ode.OdeUtil

from panda3d.ode import OdeUtil
class OdeUtil

Inheritance diagram

Inheritance diagram of OdeUtil

__init__() → None
__init__(param0: OdeUtil) → None
static getConnectingJoint(body1: OdeBody, body2: OdeBody) → OdeJoint

Returns the joint that connects the given bodies.

Return type

OdeJoint

static getConnectingJointList(body1: OdeBody, body2: OdeBody) → OdeJointCollection

Returns a collection of joints connecting the specified bodies.

Return type

OdeJointCollection

static areConnected(body1: OdeBody, body2: OdeBody) → int

Returns 1 if the given bodies are connected by a joint, returns 0 otherwise.

static areConnectedExcluding(body1: OdeBody, body2: OdeBody, joint_type: int) → int

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.

static collide(geom1: OdeGeom, geom2: OdeGeom, max_contacts: int) → OdeCollisionEntry

Given two geometry objects that potentially touch (geom1 and geom2), generate contact information for them. Returns an OdeCollisionEntry.

Return type

OdeCollisionEntry

static collide2(geom1: OdeGeom, geom2: OdeGeom, arg: object, callback: object) → int
static spaceToGeom(space: OdeSpace) → OdeGeom
Return type

OdeGeom

static getInfinity() → dReal

RAU we can’t access OC_infinity as constants are not exposed in python

Return type

dReal

static randGetSeed() → int
static randSetSeed(s: int) → None