Panda3D
Public Types | Public Member Functions | Static Public Member Functions | List of all members
OdeJoint Class Reference
Inheritance diagram for OdeJoint:
TypedObject OdeAMotorJoint OdeBallJoint OdeContactJoint OdeFixedJoint OdeHinge2Joint OdeHingeJoint OdeLMotorJoint OdeNullJoint OdePlane2dJoint OdeSliderJoint OdeUniversalJoint

Public Types

enum  JointType {
  JT_none = 0, JT_ball = 1, JT_hinge = 2, JT_slider = 3,
  JT_contact = 4, JT_universal = 5, JT_hinge2 = 6, JT_fixed = 7,
  JT_null = 8, JT_a_motor = 9, JT_l_motor = 10, JT_plane2d = 11
}
 

Public Member Functions

 attach (const OdeBody body1, const OdeBody body2)
 
 attachBodies (const OdeBody body1, const OdeBody body2)
 Attaches two OdeBody objects to this joint. More...
 
 attachBody (const OdeBody body, int index)
 Attaches a single OdeBody to this joint at the specified index (0 or 1). More...
 
int compareTo (const OdeJoint other)
 
object convert ()
 
OdeAMotorJoint convertToAMotor ()
 
OdeBallJoint convertToBall ()
 
OdeContactJoint convertToContact ()
 
OdeFixedJoint convertToFixed ()
 
OdeHingeJoint convertToHinge ()
 
OdeHinge2Joint convertToHinge2 ()
 
OdeLMotorJoint convertToLMotor ()
 
OdeNullJoint convertToNull ()
 
OdePlane2dJoint convertToPlane2d ()
 
OdeSliderJoint convertToSlider ()
 
OdeUniversalJoint convertToUniversal ()
 
 destroy ()
 
 detach ()
 
OdeBody getBody (int index)
 
OdeJointFeedback getFeedback ()
 
DJointID getId ()
 Returns the underlying dJointID. More...
 
int getJointType ()
 
bool isEmpty ()
 Returns true if the ID is 0, meaning the OdeJoint does not point to a valid joint. More...
 
bool operator== (const OdeJoint other)
 
 setFeedback (OdeJointFeedback)
 
 setFeedback (bool flag)
 
 write (Ostream out, unsigned int indent)
 
- Public Member Functions inherited from TypedObject
TypeHandle getType ()
 
int getTypeIndex ()
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More...
 
bool isExactType (TypeHandle handle)
 Returns true if the current object is the indicated type exactly. More...
 
bool isOfType (TypeHandle handle)
 Returns true if the current object is or derives from the indicated type. More...
 

Static Public Member Functions

static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from TypedObject
static TypeHandle getClassType ()
 

Additional Inherited Members

- Public Attributes inherited from TypedObject
TypeHandle type
 Returns the TypeHandle representing this object's type. More...
 

Member Enumeration Documentation

◆ JointType

enum JointType
Enumerator
JT_none 
  • or "unknown" *
JT_ball 
JT_hinge 
JT_slider 
JT_contact 
JT_universal 
JT_hinge2 
JT_fixed 
JT_null 
JT_a_motor 
JT_l_motor 
JT_plane2d 

Member Function Documentation

◆ attach()

attach ( const OdeBody  body1,
const OdeBody  body2 
)

◆ attachBodies()

attachBodies ( const OdeBody  body1,
const OdeBody  body2 
)

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()

attachBody ( const OdeBody  body,
int  index 
)

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.

◆ compareTo()

int compareTo ( const OdeJoint  other)

◆ convert()

object convert ( )

◆ convertToAMotor()

OdeAMotorJoint convertToAMotor ( )

◆ convertToBall()

OdeBallJoint convertToBall ( )

◆ convertToContact()

OdeContactJoint convertToContact ( )

◆ convertToFixed()

OdeFixedJoint convertToFixed ( )

◆ convertToHinge()

OdeHingeJoint convertToHinge ( )

◆ convertToHinge2()

OdeHinge2Joint convertToHinge2 ( )

◆ convertToLMotor()

OdeLMotorJoint convertToLMotor ( )

◆ convertToNull()

OdeNullJoint convertToNull ( )

◆ convertToPlane2d()

OdePlane2dJoint convertToPlane2d ( )

◆ convertToSlider()

OdeSliderJoint convertToSlider ( )

◆ convertToUniversal()

OdeUniversalJoint convertToUniversal ( )

◆ destroy()

destroy ( )

◆ detach()

detach ( )

◆ getBody()

OdeBody getBody ( int  index)

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ getFeedback()

OdeJointFeedback getFeedback ( )

◆ getId()

DJointID getId ( )

Returns the underlying dJointID.

◆ getJointType()

int getJointType ( )

◆ isEmpty()

bool isEmpty ( )

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.

◆ operator==()

bool operator== ( const OdeJoint  other)

◆ setFeedback() [1/2]

setFeedback ( OdeJointFeedback  )

◆ setFeedback() [2/2]

setFeedback ( bool  flag)

◆ write()

write ( Ostream  out,
unsigned int  indent 
)