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

OdeHingeJoint Class Reference

Inheritance diagram for OdeHingeJoint:
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

 OdeHingeJoint (OdeWorld world)
 OdeHingeJoint (OdeWorld world, OdeJointGroup joint_group)
 addTorque (float torque)
 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 ()
VBase3 getAnchor ()
VBase3 getAnchor2 ()
float getAngle ()
float getAngleRate ()
VBase3 getAxis ()
OdeBody getBody (int index)
OdeJointFeedback getFeedback ()
dxJoint getId ()
 Returns the underlying dJointID.
int getJointType ()
float getParamBounce ()
float getParamCFM ()
float getParamFMax ()
float getParamFudgeFactor ()
float getParamHiStop ()
float getParamLoStop ()
float getParamStopCFM ()
float getParamStopERP ()
float getParamVel ()
bool isEmpty ()
 Returns true if the ID is 0, meaning the OdeJoint does not point to a valid joint.
bool operator== (OdeJoint const other)
 setAnchor (float x, float y, float z)
 setAnchor (VBase3 const anchor)
 setAnchorDelta (VBase3 const anchor, VBase3 const vec)
 setAnchorDelta (float x, float y, float z, float ax, float ay, float az)
 setAxis (float x, float y, float z)
 setAxis (VBase3 const axis)
 setFeedback (OdeJointFeedback)
 setFeedback ()
 setFeedback (bool flag)
 setParamBounce (float val)
 setParamCFM (float val)
 setParamFMax (float val)
 setParamFudgeFactor (float val)
 setParamHiStop (float val)
 setParamLoStop (float val)
 setParamStopCFM (float val)
 setParamStopERP (float val)
 setParamVel (float val)
 write (ostream out, unsigned int indent)
 write ()
 write (ostream out)

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

OdeHingeJoint ( OdeWorld  world)
OdeHingeJoint ( OdeWorld  world,
OdeJointGroup  joint_group 
)

Member Function Documentation

addTorque ( float  torque)
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]
VBase3 getAnchor ( )
VBase3 getAnchor2 ( )
float getAngle ( )
float getAngleRate ( )
VBase3 getAxis ( )
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]
float getParamBounce ( )
float getParamCFM ( )
float getParamFMax ( )
float getParamFudgeFactor ( )
float getParamHiStop ( )
float getParamLoStop ( )
float getParamStopCFM ( )
float getParamStopERP ( )
float getParamVel ( )
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]
setAnchor ( float  x,
float  y,
float  z 
)
setAnchor ( VBase3 const  anchor)
setAnchorDelta ( float  x,
float  y,
float  z,
float  ax,
float  ay,
float  az 
)
setAnchorDelta ( VBase3 const  anchor,
VBase3 const  vec 
)
setAxis ( float  x,
float  y,
float  z 
)
setAxis ( VBase3 const  axis)
setFeedback ( ) [inherited]
setFeedback ( bool  flag) [inherited]
setFeedback ( OdeJointFeedback  ) [inherited]
setParamBounce ( float  val)
setParamCFM ( float  val)
setParamFMax ( float  val)
setParamFudgeFactor ( float  val)
setParamHiStop ( float  val)
setParamLoStop ( float  val)
setParamStopCFM ( float  val)
setParamStopERP ( float  val)
setParamVel ( float  val)
write ( ) [inherited]
write ( ostream  out,
unsigned int  indent 
) [inherited]
write ( ostream  out) [inherited]
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties