panda3d.ode.OdeJoint

class OdeJoint

Bases: TypedObject

Inheritance diagram

Inheritance diagram of OdeJoint

destroy() → None
isEmpty() → bool

Returns true if the ID is 0, meaning the OdeJoint does not point to a valid joint. It is an error to call a method on an empty joint. Note that an empty OdeJoint also evaluates to False.

getId() → dJointID

Returns the underlying dJointID.

Return type

dJointID

getJointType() → int

/* INLINE void *get_data(); */

getBody(index: int) → OdeBody
Return type

OdeBody

setFeedback(param0: OdeJointFeedback) → None
setFeedback(flag: bool) → None
getFeedback() → OdeJointFeedback
Return type

OdeJointFeedback

attach(body1: object, body2: object) → None
attachBodies(body1: OdeBody, body2: OdeBody) → None

Attaches two OdeBody objects to this joint. Order is important. Consider using the OdeJoint.attach() extension function if you’re using the Python interface.

attachBody(body: OdeBody, index: int) → None

Attaches a single OdeBody to this joint at the specified index (0 or 1). The other index will be set to the environment (null). Consider using the OdeJoint.attach() extension function if you’re using the Python interface.

detach() → None
write(out: ostream, indent: int) → None
compareTo(other: OdeJoint) → int
convert() → object
convertToBall() → OdeBallJoint
Return type

OdeBallJoint

convertToHinge() → OdeHingeJoint
Return type

OdeHingeJoint

convertToSlider() → OdeSliderJoint
Return type

OdeSliderJoint

convertToContact() → OdeContactJoint
Return type

OdeContactJoint

convertToUniversal() → OdeUniversalJoint
Return type

OdeUniversalJoint

convertToHinge2() → OdeHinge2Joint
Return type

OdeHinge2Joint

convertToFixed() → OdeFixedJoint
Return type

OdeFixedJoint

convertToNull() → OdeNullJoint
Return type

OdeNullJoint

convertToAMotor() → OdeAMotorJoint
Return type

OdeAMotorJoint

convertToLMotor() → OdeLMotorJoint
Return type

OdeLMotorJoint

convertToPlane2d() → OdePlane2dJoint
Return type

OdePlane2dJoint

static getClassType() → TypeHandle
Return type

TypeHandle

enum JointType

/* or “unknown” */

enumerator JT_none = 0

/* or “unknown” */

enumerator JT_ball = 1
enumerator JT_hinge = 2
enumerator JT_slider = 3
enumerator JT_contact = 4
enumerator JT_universal = 5
enumerator JT_hinge2 = 6
enumerator JT_fixed = 7
enumerator JT_null = 8
enumerator JT_a_motor = 9
enumerator JT_l_motor = 10
enumerator JT_plane2d = 11