Panda3D
Public Types | Public Member Functions | Static Public Member Functions

OdeAMotorJoint Class Reference

Inheritance diagram for OdeAMotorJoint:
OdeJoint

List of all members.

Public Types

enum  JointType {
  JTNone = 0, JTBall = 1, JTHinge = 2, JTSlider = 3,
  JTContact = 4, JTUniversal = 5, JTHinge2 = 6, JTFixed = 7,
  JTNull = 8, JTAMotor = 9, JTLMotor = 10, JTPlane2d = 11
}

Public Member Functions

 OdeAMotorJoint (OdeWorld world)
 OdeAMotorJoint (OdeWorld world, OdeJointGroup joint_group)
 addTorques (float torque1, float torque2, float torque3)
 attachBodies (OdeBody const body1, OdeBody const body2)
 attachBody (OdeBody const body, int index)
int compareTo (OdeJoint const other)
OdeAMotorJoint convertToAMotor ()
OdeBallJoint convertToBall ()
OdeContactJoint convertToContact ()
OdeFixedJoint convertToFixed ()
OdeHingeJoint convertToHinge ()
OdeHinge2Joint convertToHinge2 ()
OdeLMotorJoint convertToLMotor ()
OdeNullJoint convertToNull ()
OdePlane2dJoint convertToPlane2d ()
OdeSliderJoint convertToSlider ()
OdeUniversalJoint convertToUniversal ()
 destroy ()
 detach ()
float getAngle (int anum)
float getAngleRate (int anum)
list getAxes ()
VBase3 getAxis (int anum)
int getAxisRel (int anum)
OdeBody getBody (int index)
OdeJointFeedback getFeedback ()
dxJoint getId ()
 Returns the underlying dJointID.
int getJointType ()
int getMode ()
int getNumAxes ()
float getParamBounce (int axis)
float getParamCFM (int axis)
float getParamFMax (int axis)
float getParamFudgeFactor (int axis)
float getParamHiStop (int axis)
float getParamLoStop (int axis)
float getParamStopCFM (int axis)
float getParamStopERP (int axis)
float getParamVel (int axis)
bool isEmpty ()
 Returns true if the ID is 0, meaning the OdeJoint does not point to a valid joint.
bool operator== (OdeJoint const other)
 setAngle (int anum, float angle)
 setAxis (int anum, int rel, VBase3 const axis)
 setAxis (int anum, int rel, float x, float y, float z)
 setFeedback (OdeJointFeedback)
 setFeedback (bool flag)
 setFeedback ()
 setMode (int mode)
 setNumAxes (int num)
 setParamBounce (int axis, float val)
 setParamCFM (int axis, float val)
 setParamFMax (int axis, float val)
 setParamFudgeFactor (int axis, float val)
 setParamHiStop (int axis, float val)
 setParamLoStop (int axis, float val)
 setParamStopCFM (int axis, float val)
 setParamStopERP (int axis, float val)
 setParamVel (int axis, float val)
 write (ostream out)
 write ()
 write (ostream out, unsigned int indent)

Static Public Member Functions

static TypeHandle getClassType ()

Member Enumeration Documentation

enum JointType [inherited]
Enumerator:
JTNone 
JTBall 
JTHinge 
JTSlider 
JTContact 
JTUniversal 
JTHinge2 
JTFixed 
JTNull 
JTAMotor 
JTLMotor 
JTPlane2d 

Constructor & Destructor Documentation

OdeAMotorJoint ( OdeWorld  world,
OdeJointGroup  joint_group 
)

Member Function Documentation

addTorques ( float  torque1,
float  torque2,
float  torque3 
)
attachBodies ( OdeBody const  body1,
OdeBody const  body2 
) [inherited]
attachBody ( OdeBody const  body,
int  index 
) [inherited]
int compareTo ( OdeJoint const  other) [inherited]
OdeAMotorJoint convertToAMotor ( ) [inherited]
OdeBallJoint convertToBall ( ) [inherited]
OdeContactJoint convertToContact ( ) [inherited]
OdeFixedJoint convertToFixed ( ) [inherited]
OdeHingeJoint convertToHinge ( ) [inherited]
OdeHinge2Joint convertToHinge2 ( ) [inherited]
OdeLMotorJoint convertToLMotor ( ) [inherited]
OdeNullJoint convertToNull ( ) [inherited]
OdePlane2dJoint convertToPlane2d ( ) [inherited]
OdeSliderJoint convertToSlider ( ) [inherited]
OdeUniversalJoint convertToUniversal ( ) [inherited]
destroy ( ) [inherited]
detach ( ) [inherited]
float getAngle ( int  anum)
float getAngleRate ( int  anum)
list getAxes ( )
VBase3 getAxis ( int  anum)
int getAxisRel ( int  anum)
OdeBody getBody ( int  index) [inherited]
static TypeHandle getClassType ( ) [static]

Reimplemented from OdeJoint.

OdeJointFeedback getFeedback ( ) [inherited]
dxJoint getId ( ) [inherited]

Returns the underlying dJointID.

int getJointType ( ) [inherited]
int getMode ( )
int getNumAxes ( )
float getParamBounce ( int  axis)
float getParamCFM ( int  axis)
float getParamFMax ( int  axis)
float getParamFudgeFactor ( int  axis)
float getParamHiStop ( int  axis)
float getParamLoStop ( int  axis)
float getParamStopCFM ( int  axis)
float getParamStopERP ( int  axis)
float getParamVel ( int  axis)
bool isEmpty ( ) [inherited]

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.

bool operator== ( OdeJoint const  other) [inherited]
setAngle ( int  anum,
float  angle 
)
setAxis ( int  anum,
int  rel,
VBase3 const  axis 
)
setAxis ( int  anum,
int  rel,
float  x,
float  y,
float  z 
)
setFeedback ( OdeJointFeedback  ) [inherited]
setFeedback ( ) [inherited]
setFeedback ( bool  flag) [inherited]
setMode ( int  mode)
setNumAxes ( int  num)
setParamBounce ( int  axis,
float  val 
)
setParamCFM ( int  axis,
float  val 
)
setParamFMax ( int  axis,
float  val 
)
setParamFudgeFactor ( int  axis,
float  val 
)
setParamHiStop ( int  axis,
float  val 
)
setParamLoStop ( int  axis,
float  val 
)
setParamStopCFM ( int  axis,
float  val 
)
setParamStopERP ( int  axis,
float  val 
)
setParamVel ( int  axis,
float  val 
)
write ( ) [inherited]
write ( ostream  out) [inherited]
write ( ostream  out,
unsigned int  indent 
) [inherited]
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties