|
RavEngine
|
Data structure describing configuration data of a vehicle with up to 20 wheels. More...
#include <PxVehicleWheels.h>
Public Member Functions | |
| void | setChassisMass (const PxF32 chassisMass) |
| Setup with mass information that can be applied to the default values of the suspensions, wheels, and tires set in their respective constructors. | |
| void | free () |
| Free a PxVehicleWheelsSimData instance. | |
| PxVehicleWheelsSimData & | operator= (const PxVehicleWheelsSimData &src) |
| Copy wheel simulation data. | |
| void | copy (const PxVehicleWheelsSimData &src, const PxU32 srcWheel, const PxU32 trgWheel) |
| Copy the data of a single wheel unit (wheel, suspension, tire) from srcWheel of src to trgWheel. | |
| PxU32 | getNbWheels () const |
| Return the number of wheels. | |
| const PxVehicleSuspensionData & | getSuspensionData (const PxU32 id) const |
| Return the suspension data of the idth wheel. | |
| const PxVehicleWheelData & | getWheelData (const PxU32 id) const |
| Return the wheel data of the idth wheel. | |
| const PxVehicleTireData & | getTireData (const PxU32 id) const |
| Return the tire data of the idth wheel. | |
| const PxVec3 & | getSuspTravelDirection (const PxU32 id) const |
| Return the direction of travel of the suspension of the idth wheel. | |
| const PxVec3 & | getSuspForceAppPointOffset (const PxU32 id) const |
| Return the application point of the suspension force of the suspension of the idth wheel as an offset from the rigid body center of mass. | |
| const PxVec3 & | getTireForceAppPointOffset (const PxU32 id) const |
| Return the application point of the tire force of the tire of the idth wheel as an offset from the rigid body center of mass. | |
| const PxVec3 & | getWheelCentreOffset (const PxU32 id) const |
| Return the offset from the rigid body centre of mass to the centre of the idth wheel. | |
| PxI32 | getWheelShapeMapping (const PxU32 wheelId) const |
| Return the wheel mapping for the ith wheel. | |
| const PxFilterData & | getSceneQueryFilterData (const PxU32 suspId) const |
| Return the scene query filter data used by the specified suspension line. | |
| PxU32 | getNbAntiRollBars () const |
| Return the number of unique anti-roll bars that have been added with addAntiRollBarData. | |
| const PxVehicleAntiRollBarData & | getAntiRollBarData (const PxU32 antiRollId) const |
| Return a specific anti-roll bar. | |
| PX_FORCE_INLINE const PxVehicleTireLoadFilterData & | getTireLoadFilterData () const |
| Return the data that describes the filtering of the tire load to produce smoother handling at large time-steps. | |
| void | setSuspensionData (const PxU32 id, const PxVehicleSuspensionData &susp) |
| Set the suspension data of the idth wheel. | |
| void | setWheelData (const PxU32 id, const PxVehicleWheelData &wheel) |
| Set the wheel data of the idth wheel. | |
| void | setTireData (const PxU32 id, const PxVehicleTireData &tire) |
| Set the tire data of the idth wheel. | |
| void | setSuspTravelDirection (const PxU32 id, const PxVec3 &dir) |
| Set the direction of travel of the suspension of the idth wheel. | |
| void | setSuspForceAppPointOffset (const PxU32 id, const PxVec3 &offset) |
| Set the application point of the suspension force of the suspension of the idth wheel. | |
| void | setTireForceAppPointOffset (const PxU32 id, const PxVec3 &offset) |
| Set the application point of the tire force of the tire of the idth wheel. | |
| void | setWheelCentreOffset (const PxU32 id, const PxVec3 &offset) |
| Set the offset from the rigid body centre of mass to the centre of the idth wheel. | |
| void | setWheelShapeMapping (const PxU32 wheelId, const PxI32 shapeId) |
| Set mapping between wheel id and position of corresponding wheel shape in the list of actor shapes. | |
| void | setSceneQueryFilterData (const PxU32 suspId, const PxFilterData &sqFilterData) |
| Set the scene query filter data that will be used for raycasts along the travel direction of the specified suspension. The default value is PxFilterData(0,0,0,0) | |
| void | setTireLoadFilterData (const PxVehicleTireLoadFilterData &tireLoadFilter) |
| Set the data that describes the filtering of the tire load to produce smoother handling at large timesteps. | |
| PxU32 | addAntiRollBarData (const PxVehicleAntiRollBarData &antiRoll) |
| Set the anti-roll suspension for a pair of wheels. | |
| void | disableWheel (const PxU32 wheel) |
| Disable a wheel so that zero suspension forces and zero tire forces are applied to the rigid body from this wheel. | |
| void | enableWheel (const PxU32 wheel) |
| Enable a wheel so that suspension forces and tire forces are applied to the rigid body. All wheels are enabled by default and remain enabled until they are disabled. | |
| bool | getIsWheelDisabled (const PxU32 wheel) const |
| Test if a wheel has been disabled. | |
| void | setSubStepCount (const PxReal thresholdLongitudinalSpeed, const PxU32 lowForwardSpeedSubStepCount, const PxU32 highForwardSpeedSubStepCount) |
| Set the number of vehicle sub-steps that will be performed when the vehicle's longitudinal speed is below and above a threshold longitudinal speed. | |
| void | setMinLongSlipDenominator (const PxReal minLongSlipDenominator) |
| Set the minimum denominator used in the longitudinal slip calculation. | |
| void | setFlags (PxVehicleWheelsSimFlags flags) |
| Set the vehicle wheel simulation flags. | |
| PxVehicleWheelsSimFlags | getFlags () const |
| Return the vehicle wheel simulation flags. | |
| PxVehicleWheelsSimData (const PxEMPTY) | |
| PxU32 | getNbWheels4 () const |
| PxU32 | getNbSuspensionData () const |
| PxU32 | getNbWheelData () const |
| PxU32 | getNbSuspTravelDirection () const |
| PxU32 | getNbTireData () const |
| PxU32 | getNbSuspForceAppPointOffset () const |
| PxU32 | getNbTireForceAppPointOffset () const |
| PxU32 | getNbWheelCentreOffset () const |
| PxU32 | getNbWheelShapeMapping () const |
| PxU32 | getNbSceneQueryFilterData () const |
| PxF32 | getMinLongSlipDenominator () const |
| void | setThresholdLongSpeed (const PxF32 f) |
| PxF32 | getThresholdLongSpeed () const |
| void | setLowForwardSpeedSubStepCount (const PxU32 f) |
| PxU32 | getLowForwardSpeedSubStepCount () const |
| void | setHighForwardSpeedSubStepCount (const PxU32 f) |
| PxU32 | getHighForwardSpeedSubStepCount () const |
| void | setWheelEnabledState (const PxU32 wheel, const bool state) |
| bool | getWheelEnabledState (const PxU32 wheel) const |
| PxU32 | getNbWheelEnabledState () const |
| PxU32 | getNbAntiRollBars4 () const |
| PxU32 | getNbAntiRollBarData () const |
| void | setAntiRollBarData (const PxU32 id, const PxVehicleAntiRollBarData &antiRoll) |
Static Public Member Functions | |
| static PxVehicleWheelsSimData * | allocate (const PxU32 nbWheels) |
| Allocate a PxVehicleWheelsSimData instance for with nbWheels. | |
| static void | getBinaryMetaData (PxOutputStream &stream) |
Friends | |
| class | PxVehicleWheels |
| class | PxVehicleNoDrive |
| class | PxVehicleDrive4W |
| class | PxVehicleDriveTank |
| class | PxVehicleUpdate |
Data structure describing configuration data of a vehicle with up to 20 wheels.
| PxU32 physx::PxVehicleWheelsSimData::addAntiRollBarData | ( | const PxVehicleAntiRollBarData & | antiRoll | ) |
Set the anti-roll suspension for a pair of wheels.
| antiRoll | is the anti-roll suspension. |
|
static |
Allocate a PxVehicleWheelsSimData instance for with nbWheels.
| void physx::PxVehicleWheelsSimData::copy | ( | const PxVehicleWheelsSimData & | src, |
| const PxU32 | srcWheel, | ||
| const PxU32 | trgWheel | ||
| ) |
Copy the data of a single wheel unit (wheel, suspension, tire) from srcWheel of src to trgWheel.
| [in] | src | is the data to be copied. |
| [in] | srcWheel | is the wheel whose data will be copied from src. |
| [in] | trgWheel | is the wheel that will be assigned the copied data. |
| void physx::PxVehicleWheelsSimData::disableWheel | ( | const PxU32 | wheel | ) |
Disable a wheel so that zero suspension forces and zero tire forces are applied to the rigid body from this wheel.
| [in] | wheel | is the wheel index. |
| void physx::PxVehicleWheelsSimData::enableWheel | ( | const PxU32 | wheel | ) |
Enable a wheel so that suspension forces and tire forces are applied to the rigid body. All wheels are enabled by default and remain enabled until they are disabled.
| [in] | wheel | is the wheel index. |
| void physx::PxVehicleWheelsSimData::free | ( | ) |
Free a PxVehicleWheelsSimData instance.
| const PxVehicleAntiRollBarData & physx::PxVehicleWheelsSimData::getAntiRollBarData | ( | const PxU32 | antiRollId | ) | const |
Return a specific anti-roll bar.
| antiRollId | is the unique id of the anti-roll bar |
| PxVehicleWheelsSimFlags physx::PxVehicleWheelsSimData::getFlags | ( | ) | const |
Return the vehicle wheel simulation flags.
| bool physx::PxVehicleWheelsSimData::getIsWheelDisabled | ( | const PxU32 | wheel | ) | const |
Test if a wheel has been disabled.
| [in] | wheel | is the wheel index. |
|
inline |
Return the number of unique anti-roll bars that have been added with addAntiRollBarData.
|
inline |
Return the number of wheels.
| const PxVec3 & physx::PxVehicleWheelsSimData::getSuspForceAppPointOffset | ( | const PxU32 | id | ) | const |
Return the application point of the suspension force of the suspension of the idth wheel as an offset from the rigid body center of mass.
| const PxVec3 & physx::PxVehicleWheelsSimData::getTireForceAppPointOffset | ( | const PxU32 | id | ) | const |
Return the application point of the tire force of the tire of the idth wheel as an offset from the rigid body center of mass.
| PxI32 physx::PxVehicleWheelsSimData::getWheelShapeMapping | ( | const PxU32 | wheelId | ) | const |
Return the wheel mapping for the ith wheel.
| PxVehicleWheelsSimData & physx::PxVehicleWheelsSimData::operator= | ( | const PxVehicleWheelsSimData & | src | ) |
Copy wheel simulation data.
| void physx::PxVehicleWheelsSimData::setChassisMass | ( | const PxF32 | chassisMass | ) |
Setup with mass information that can be applied to the default values of the suspensions, wheels, and tires set in their respective constructors.
| chassisMass | is the mass of the chassis. |
| void physx::PxVehicleWheelsSimData::setFlags | ( | PxVehicleWheelsSimFlags | flags | ) |
Set the vehicle wheel simulation flags.
| [in] | flags | The flags to set (see PxVehicleWheelsSimFlags). |
Default: no flag set
| void physx::PxVehicleWheelsSimData::setMinLongSlipDenominator | ( | const PxReal | minLongSlipDenominator | ) |
Set the minimum denominator used in the longitudinal slip calculation.
| void physx::PxVehicleWheelsSimData::setSceneQueryFilterData | ( | const PxU32 | suspId, |
| const PxFilterData & | sqFilterData | ||
| ) |
Set the scene query filter data that will be used for raycasts along the travel direction of the specified suspension. The default value is PxFilterData(0,0,0,0)
| suspId | is the wheel index |
| sqFilterData | is the raycast filter data for the suspension raycast. |
| void physx::PxVehicleWheelsSimData::setSubStepCount | ( | const PxReal | thresholdLongitudinalSpeed, |
| const PxU32 | lowForwardSpeedSubStepCount, | ||
| const PxU32 | highForwardSpeedSubStepCount | ||
| ) |
Set the number of vehicle sub-steps that will be performed when the vehicle's longitudinal speed is below and above a threshold longitudinal speed.
| [in] | thresholdLongitudinalSpeed | is a threshold speed that is used to categorize vehicle speed as low speed or high speed. |
| [in] | lowForwardSpeedSubStepCount | is the number of sub-steps performed in PxVehicleUpates for vehicles that have longitudinal speed lower than thresholdLongitudinalSpeed. |
| [in] | highForwardSpeedSubStepCount | is the number of sub-steps performed in PxVehicleUpdates for vehicles that have longitudinal speed graeter than thresholdLongitudinalSpeed. |
| void physx::PxVehicleWheelsSimData::setSuspensionData | ( | const PxU32 | id, |
| const PxVehicleSuspensionData & | susp | ||
| ) |
Set the suspension data of the idth wheel.
| [in] | id | is the wheel index. |
| [in] | susp | is the suspension data to be applied. |
| void physx::PxVehicleWheelsSimData::setSuspForceAppPointOffset | ( | const PxU32 | id, |
| const PxVec3 & | offset | ||
| ) |
Set the application point of the suspension force of the suspension of the idth wheel.
| [in] | id | is the wheel index |
| [in] | offset | is the offset from the rigid body center of mass to the application point of the suspension force. |
| void physx::PxVehicleWheelsSimData::setSuspTravelDirection | ( | const PxU32 | id, |
| const PxVec3 & | dir | ||
| ) |
Set the direction of travel of the suspension of the idth wheel.
| [in] | id | is the wheel index |
| [in] | dir | is the suspension travel direction to be applied. |
| void physx::PxVehicleWheelsSimData::setTireData | ( | const PxU32 | id, |
| const PxVehicleTireData & | tire | ||
| ) |
Set the tire data of the idth wheel.
| [in] | id | is the wheel index. |
| [in] | tire | is the tire data to be applied. |
| void physx::PxVehicleWheelsSimData::setTireForceAppPointOffset | ( | const PxU32 | id, |
| const PxVec3 & | offset | ||
| ) |
Set the application point of the tire force of the tire of the idth wheel.
| [in] | id | is the wheel index |
| [in] | offset | is the offset from the rigid body center of mass to the application point of the tire force. |
| void physx::PxVehicleWheelsSimData::setTireLoadFilterData | ( | const PxVehicleTireLoadFilterData & | tireLoadFilter | ) |
Set the data that describes the filtering of the tire load to produce smoother handling at large timesteps.
| tireLoadFilter | is the smoothing function data. |
| void physx::PxVehicleWheelsSimData::setWheelCentreOffset | ( | const PxU32 | id, |
| const PxVec3 & | offset | ||
| ) |
Set the offset from the rigid body centre of mass to the centre of the idth wheel.
| [in] | id | is the wheel index |
| [in] | offset | is the offset from the rigid body center of mass to the center of the wheel at rest. |
| void physx::PxVehicleWheelsSimData::setWheelData | ( | const PxU32 | id, |
| const PxVehicleWheelData & | wheel | ||
| ) |
Set the wheel data of the idth wheel.
| [in] | id | is the wheel index. |
| [in] | wheel | is the wheel data to be applied. |
| void physx::PxVehicleWheelsSimData::setWheelShapeMapping | ( | const PxU32 | wheelId, |
| const PxI32 | shapeId | ||
| ) |
Set mapping between wheel id and position of corresponding wheel shape in the list of actor shapes.
| wheelId | is the wheel index |
| shapeId | is the shape index. |