PxVehicleDifferentialNWData Class Reference

#include <PxVehicleComponents.h>

Public Member Functions

 PxVehicleDifferentialNWData ()
 
void setDrivenWheel (const PxU32 wheelId, const bool drivenState)
 Set a specific wheel to be driven or non-driven by the differential. More...
 
bool getIsDrivenWheel (const PxU32 wheelId) const
 Test if a specific wheel has been configured as a driven or non-driven wheel. More...
 
 PxVehicleDifferentialNWData (const PxEMPTY)
 
PxU32 getDrivenWheelStatus () const
 
void setDrivenWheelStatus (PxU32 status)
 

Private Member Functions

bool isValid () const
 

Private Attributes

PxU32 mBitmapBuffer [((PX_MAX_NB_WHEELS+31) &~31) >> 5]
 
PxU32 mNbDrivenWheels
 
PxReal mInvNbDrivenWheels
 
PxU32 mPad
 

Friends

class PxVehicleDriveSimDataNW
 
class PxVehicleUpdate
 

Constructor & Destructor Documentation

◆ PxVehicleDifferentialNWData() [1/2]

PxVehicleDifferentialNWData::PxVehicleDifferentialNWData ( )
inline

References PX_MAX_NB_WHEELS, and PxMemSet().

◆ PxVehicleDifferentialNWData() [2/2]

PxVehicleDifferentialNWData::PxVehicleDifferentialNWData ( const PxEMPTY  )
inline

Member Function Documentation

◆ getDrivenWheelStatus()

PxU32 PxVehicleDifferentialNWData::getDrivenWheelStatus ( ) const

◆ getIsDrivenWheel()

bool PxVehicleDifferentialNWData::getIsDrivenWheel ( const PxU32  wheelId) const

Test if a specific wheel has been configured as a driven or non-driven wheel.

◆ isValid()

bool PxVehicleDifferentialNWData::isValid ( ) const
private

◆ setDrivenWheel()

void PxVehicleDifferentialNWData::setDrivenWheel ( const PxU32  wheelId,
const bool  drivenState 
)

Set a specific wheel to be driven or non-driven by the differential.

Note
The available drive torque will be split equally between all driven wheels. Zero torque will be applied to non-driven wheels. The default state of each wheel is to be uncoupled to the differential.

◆ setDrivenWheelStatus()

void PxVehicleDifferentialNWData::setDrivenWheelStatus ( PxU32  status)

Friends And Related Function Documentation

◆ PxVehicleDriveSimDataNW

friend class PxVehicleDriveSimDataNW
friend

◆ PxVehicleUpdate

friend class PxVehicleUpdate
friend

Member Data Documentation

◆ mBitmapBuffer

PxU32 PxVehicleDifferentialNWData::mBitmapBuffer[((PX_MAX_NB_WHEELS+31) &~31) >> 5]
private

◆ mInvNbDrivenWheels

PxReal PxVehicleDifferentialNWData::mInvNbDrivenWheels
private

◆ mNbDrivenWheels

PxU32 PxVehicleDifferentialNWData::mNbDrivenWheels
private

◆ mPad

PxU32 PxVehicleDifferentialNWData::mPad
private

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