PhysX SDK 3.2 API Reference: PxVehicleWheelsDynData Class Reference

PhysX SDK 3.2 API

PxVehicleWheelsDynData Class Reference
[Vehicle]

Data structure with instanced dynamics data for wheels. More...

#include <PxVehicleWheels.h>

Collaboration diagram for PxVehicleWheelsDynData:

List of all members.


Public Member Functions

void setToRestState ()
 Set all wheels to their rest state.
void setTireForceShaderFunction (PxVehicleComputeTireForce tireForceShaderFn)
 Set the tire force shader function.
void setTireForceShaderData (const PxU32 tireId, const void *tireForceShaderData)
 Set the tire force shader data for a specific tire.
PxReal getWheelRotationSpeed (const PxU32 wheelIdx) const
 Return the rotation speed of a specified wheel.
PxReal getSteer (const PxU32 wheelIdx) const
 Return the steer angle of a specified wheel.
PxReal getWheelRotationAngle (const PxU32 wheelIdx) const
 Return the rotation angle of the specified wheel about the axis of rolling rotation.
PxReal getSuspJounce (const PxU32 suspIdx) const
 Return the susp jounce of the specified suspension.
PxReal getTireLongSlip (const PxU32 tireIdx) const
 Return the longitudinal slip of the specified tire.
PxReal getTireLatSlip (const PxU32 tireIdx) const
 Return the lateral slip of the specified tire.
PxReal getTireFriction (const PxU32 tireIdx) const
 Return the friction applied to the specified tire.
PxU32 getTireDrivableSurfaceType (const PxU32 tireIdx) const
 Return the drivable surface type underneath the specified tire.
const PxMaterialgetTireDrivableSurfaceMaterial (const PxU32 tireIdx) const
 Return the PxMaterial of the drivable surface underneath the specified tire.
void getSuspRaycast (const PxU32 suspIdx, PxVec3 &start, PxVec3 &dir, PxReal &length) const
 Return the raycast start, direction, and length of the specified suspension line.
PxVec3 getSuspLineStart (const PxU32 tireIdx) const
 Return the suspension line start.
PxVec3 getSuspLineDir (const PxU32 tireIdx) const
 Return the suspension line dir.

Private Member Functions

bool isValid () const
 Test if wheel dynamics data have legal values.
 PxVehicleWheelsDynData ()
 ~PxVehicleWheelsDynData ()

Private Attributes

PxVehicleWheels4DynData * mWheels4DynData
 Dynamics data arranged in blocks of 4 wheels.
PxVehicleTireForceCalculatormTireForceCalculators
 Shader data and function for tire force calculations.
PxU32 mNumWheels4
 Number of blocks of 4 wheels.
PxU32 mNumActiveWheels
 Number of wheels (mNumActiveWheels <= (mNumWheels4*4)).

Friends

class PxVehicleWheels
class PxVehicleDrive4W
class PxVehicleDriveTank
class PxVehicleUpdate

Detailed Description

Data structure with instanced dynamics data for wheels.

Constructor & Destructor Documentation

PxVehicleWheelsDynData::PxVehicleWheelsDynData (  )  [inline, private]

PxVehicleWheelsDynData::~PxVehicleWheelsDynData (  )  [inline, private]


Member Function Documentation

PxReal PxVehicleWheelsDynData::getSteer ( const PxU32  wheelIdx  )  const

Return the steer angle of a specified wheel.

PxReal PxVehicleWheelsDynData::getSuspJounce ( const PxU32  suspIdx  )  const

Return the susp jounce of the specified suspension.

PxVec3 PxVehicleWheelsDynData::getSuspLineDir ( const PxU32  tireIdx  )  const

Return the suspension line dir.

PxVec3 PxVehicleWheelsDynData::getSuspLineStart ( const PxU32  tireIdx  )  const

Return the suspension line start.

void PxVehicleWheelsDynData::getSuspRaycast ( const PxU32  suspIdx,
PxVec3 start,
PxVec3 dir,
PxReal length 
) const

Return the raycast start, direction, and length of the specified suspension line.

const PxMaterial* PxVehicleWheelsDynData::getTireDrivableSurfaceMaterial ( const PxU32  tireIdx  )  const

Return the PxMaterial of the drivable surface underneath the specified tire.

PxU32 PxVehicleWheelsDynData::getTireDrivableSurfaceType ( const PxU32  tireIdx  )  const

Return the drivable surface type underneath the specified tire.

PxReal PxVehicleWheelsDynData::getTireFriction ( const PxU32  tireIdx  )  const

Return the friction applied to the specified tire.

PxReal PxVehicleWheelsDynData::getTireLatSlip ( const PxU32  tireIdx  )  const

Return the lateral slip of the specified tire.

PxReal PxVehicleWheelsDynData::getTireLongSlip ( const PxU32  tireIdx  )  const

Return the longitudinal slip of the specified tire.

PxReal PxVehicleWheelsDynData::getWheelRotationAngle ( const PxU32  wheelIdx  )  const

Return the rotation angle of the specified wheel about the axis of rolling rotation.

PxReal PxVehicleWheelsDynData::getWheelRotationSpeed ( const PxU32  wheelIdx  )  const

Return the rotation speed of a specified wheel.

bool PxVehicleWheelsDynData::isValid (  )  const [private]

Test if wheel dynamics data have legal values.

void PxVehicleWheelsDynData::setTireForceShaderData ( const PxU32  tireId,
const void *  tireForceShaderData 
)

Set the tire force shader data for a specific tire.

void PxVehicleWheelsDynData::setTireForceShaderFunction ( PxVehicleComputeTireForce  tireForceShaderFn  ) 

Set the tire force shader function.

void PxVehicleWheelsDynData::setToRestState (  ) 

Set all wheels to their rest state.

See also:
setup


Friends And Related Function Documentation

friend class PxVehicleDrive4W [friend]

friend class PxVehicleDriveTank [friend]

friend class PxVehicleUpdate [friend]

friend class PxVehicleWheels [friend]


Member Data Documentation

Number of wheels (mNumActiveWheels <= (mNumWheels4*4)).

Number of blocks of 4 wheels.

Shader data and function for tire force calculations.

PxVehicleWheels4DynData* PxVehicleWheelsDynData::mWheels4DynData [private]

Dynamics data arranged in blocks of 4 wheels.


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



Copyright © 2008-2012 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com