OdeJoint¶
from panda3d.ode import OdeJoint
-
class
OdeJoint
¶ Bases:
TypedObject
Inheritance diagram
-
enum
JointType
¶ /* 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¶
-
enumerator
-
attachBodies
(body1: OdeBody, body2: OdeBody)¶ Attaches two
OdeBody
objects to this joint. Order is important. Consider using theOdeJoint.attach
extension function if you’re using the Python interface.
-
attachBody
(body: OdeBody, index: int)¶ 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 theOdeJoint.attach
extension function if you’re using the Python interface.
-
convertToAMotor
() → OdeAMotorJoint¶
-
convertToBall
() → OdeBallJoint¶
-
convertToContact
() → OdeContactJoint¶
-
convertToFixed
() → OdeFixedJoint¶
-
convertToHinge
() → OdeHingeJoint¶
-
convertToHinge2
() → OdeHinge2Joint¶
-
convertToLMotor
() → OdeLMotorJoint¶
-
convertToNull
() → OdeNullJoint¶
-
convertToPlane2d
() → OdePlane2dJoint¶
-
convertToSlider
() → OdeSliderJoint¶
-
convertToUniversal
() → OdeUniversalJoint¶
-
destroy
()¶
-
detach
()¶
-
static
getClassType
() → panda3d.core.TypeHandle¶
-
getFeedback
() → OdeJointFeedback¶
-
getId
() → dJointID¶ Returns the underlying dJointID.
-
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 emptyOdeJoint
also evaluates to False.
-
setFeedback
(param0: OdeJointFeedback)¶
-
setFeedback
(flag: bool)
-
write
(out: panda3d.core.ostream, indent: int)¶
-
enum