PxD6JointDrive Class Reference

parameters for configuring the drive model of a PxD6Joint More...

#include <PxD6Joint.h>

Inheritance diagram for PxD6JointDrive:
Collaboration diagram for PxD6JointDrive:

Public Member Functions

 PxD6JointDrive ()
 default constructor for PxD6JointDrive. More...
 
 PxD6JointDrive (PxReal driveStiffness, PxReal driveDamping, PxReal driveForceLimit, bool isAcceleration=false)
 constructor a PxD6JointDrive. More...
 
bool isValid () const
 returns true if the drive is valid More...
 
- Public Member Functions inherited from PxSpring
 PxSpring (PxReal stiffness_, PxReal damping_)
 

Public Attributes

PxReal forceLimit
 the force limit of the drive - may be an impulse or a force depending on PxConstraintFlag::eDRIVE_LIMITS_ARE_FORCES More...
 
PxD6JointDriveFlags flags
 the joint drive flags More...
 
- Public Attributes inherited from PxSpring
PxReal stiffness
 the spring strength of the drive: that is, the force proportional to the position error More...
 
PxReal damping
 the damping strength of the drive: that is, the force proportional to the velocity error More...
 

Detailed Description

parameters for configuring the drive model of a PxD6Joint

See also
PxD6Joint

Constructor & Destructor Documentation

◆ PxD6JointDrive() [1/2]

PxD6JointDrive::PxD6JointDrive ( )
inline

default constructor for PxD6JointDrive.

◆ PxD6JointDrive() [2/2]

PxD6JointDrive::PxD6JointDrive ( PxReal  driveStiffness,
PxReal  driveDamping,
PxReal  driveForceLimit,
bool  isAcceleration = false 
)
inline

constructor a PxD6JointDrive.

Parameters
[in]driveStiffnessThe stiffness of the drive spring.
[in]driveDampingThe damping of the drive spring
[in]driveForceLimitThe maximum impulse or force that can be exerted by the drive
[in]isAccelerationWhether the drive is an acceleration drive or a force drive

Member Function Documentation

◆ isValid()

bool PxD6JointDrive::isValid ( ) const
inline

returns true if the drive is valid

References damping, PxIsFinite(), and stiffness.

Member Data Documentation

◆ flags

PxD6JointDriveFlags PxD6JointDrive::flags

the joint drive flags

◆ forceLimit

PxReal PxD6JointDrive::forceLimit

the force limit of the drive - may be an impulse or a force depending on PxConstraintFlag::eDRIVE_LIMITS_ARE_FORCES


The documentation for this class was generated from the following file: