PxVehicleWheelsDynData Class Reference
[Vehicle]
Data structure with instanced dynamics data for wheels.
More...
#include <PxVehicleWheels.h>

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 PxMaterial * | getTireDrivableSurfaceMaterial (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. | |
PxVehicleTireForceCalculator * | mTireForceCalculators |
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
Return the steer angle of a specified wheel.
Return the susp jounce of the specified suspension.
Return the suspension line dir.
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.
Return the drivable surface type underneath the specified tire.
Return the friction applied to the specified tire.
Return the lateral slip of the specified tire.
Return the longitudinal slip of the specified tire.
Return the rotation angle of the specified wheel about the axis of rolling rotation.
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)).
PxU32 PxVehicleWheelsDynData::mNumWheels4 [private] |
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