Data structure with instanced dynamics data for wheels.
More...
#include <PxVehicleWheels.h>
|
| | PxVehicleWheelsDynData () |
| |
| | ~PxVehicleWheelsDynData () |
| |
| void | setToRestState () |
| | Set all wheels to their rest state. More...
|
| |
| void | setTireForceShaderFunction (PxVehicleComputeTireForce tireForceShaderFn) |
| | Set the tire force shader function. More...
|
| |
| void | setTireForceShaderData (const PxU32 tireId, const void *tireForceShaderData) |
| | Set the tire force shader data for a specific tire. More...
|
| |
| const void * | getTireForceShaderData (const PxU32 tireId) const |
| | Get the tire force shader data for a specific tire. More...
|
| |
| void | setWheelRotationSpeed (const PxU32 wheelIdx, const PxReal speed) |
| | Set the wheel rotation speed (radians per second) about the rolling axis for the specified wheel. More...
|
| |
| PxReal | getWheelRotationSpeed (const PxU32 wheelIdx) const |
| | Return the rotation speed about the rolling axis of a specified wheel . More...
|
| |
| void | setWheelRotationAngle (const PxU32 wheelIdx, const PxReal angle) |
| | Set the wheel rotation angle (radians) about the rolling axis of the specified wheel. More...
|
| |
| PxReal | getWheelRotationAngle (const PxU32 wheelIdx) const |
| | Return the rotation angle about the rolling axis for the specified wheel. More...
|
| |
| void | setUserData (const PxU32 tireIdx, void *userData) |
| | Set the user data pointer for the specified wheel It has a default value of NULL. More...
|
| |
| void * | getUserData (const PxU32 tireIdx) const |
| | Get the user data pointer that was set for the specified wheel. More...
|
| |
| void | copy (const PxVehicleWheelsDynData &src, const PxU32 srcWheel, const PxU32 trgWheel) |
| | Copy the dynamics data of a single wheel unit (wheel, suspension, tire) from srcWheel of src to trgWheel. More...
|
| |
| PxU32 | getNbWheelRotationSpeed () const |
| |
| PxU32 | getNbWheelRotationAngle () const |
| |
| PxVehicleWheels4DynData * | getWheel4DynData () const |
| |
| PxU32 | getNbConstraints () const |
| | Retrieve the number of PxConstraint objects associated with the vehicle. More...
|
| |
| PxU32 | getConstraints (PxConstraint **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const |
| | Retrieve all the PxConstraint objects associated with the vehicle. More...
|
| |
Data structure with instanced dynamics data for wheels.
◆ PxVehicleWheelsDynData() [1/2]
| PxVehicleWheelsDynData::PxVehicleWheelsDynData |
( |
| ) |
|
|
inline |
◆ ~PxVehicleWheelsDynData()
| PxVehicleWheelsDynData::~PxVehicleWheelsDynData |
( |
| ) |
|
|
inline |
◆ PxVehicleWheelsDynData() [2/2]
| PxVehicleWheelsDynData::PxVehicleWheelsDynData |
( |
const PxU32 |
numWheels | ) |
|
|
private |
◆ computeByteSize()
| static PxU32 PxVehicleWheelsDynData::computeByteSize |
( |
const PxU32 |
numWheels | ) |
|
|
staticprivate |
see PxVehicleWheels::allocate
◆ copy()
Copy the dynamics data of a single wheel unit (wheel, suspension, tire) from srcWheel of src to trgWheel.
- Parameters
-
| [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. |
◆ getBinaryMetaData()
| static void PxVehicleWheelsDynData::getBinaryMetaData |
( |
PxOutputStream & |
stream | ) |
|
|
static |
◆ getConstraints()
Retrieve all the PxConstraint objects associated with the vehicle.
There is one PxConstraint per block of 4 wheels. The count can be extracted through getNbConstraints()
- Parameters
-
| [out] | userBuffer | The buffer to store the constraint pointers. |
| [in] | bufferSize | Size of provided user buffer. |
| [in] | startIndex | Index of first constraint pointer to be retrieved |
- Returns
- Number of constraint pointers written to the buffer.
- See also
- PxConstraint getNbConstraints()
◆ getNbConstraints()
| PxU32 PxVehicleWheelsDynData::getNbConstraints |
( |
| ) |
const |
|
inline |
◆ getNbWheelRotationAngle()
| PxU32 PxVehicleWheelsDynData::getNbWheelRotationAngle |
( |
| ) |
const |
|
inline |
◆ getNbWheelRotationSpeed()
| PxU32 PxVehicleWheelsDynData::getNbWheelRotationSpeed |
( |
| ) |
const |
|
inline |
◆ getTireForceShaderData()
| const void* PxVehicleWheelsDynData::getTireForceShaderData |
( |
const PxU32 |
tireId | ) |
const |
Get the tire force shader data for a specific tire.
◆ getUserData()
| void* PxVehicleWheelsDynData::getUserData |
( |
const PxU32 |
tireIdx | ) |
const |
Get the user data pointer that was set for the specified wheel.
◆ getWheel4DynData()
| PxVehicleWheels4DynData* PxVehicleWheelsDynData::getWheel4DynData |
( |
| ) |
const |
|
inline |
◆ getWheelRotationAngle()
| PxReal PxVehicleWheelsDynData::getWheelRotationAngle |
( |
const PxU32 |
wheelIdx | ) |
const |
Return the rotation angle about the rolling axis for the specified wheel.
◆ getWheelRotationSpeed()
| PxReal PxVehicleWheelsDynData::getWheelRotationSpeed |
( |
const PxU32 |
wheelIdx | ) |
const |
Return the rotation speed about the rolling axis of a specified wheel .
◆ isValid()
| bool PxVehicleWheelsDynData::isValid |
( |
| ) |
const |
|
private |
Test if wheel dynamics data have legal values.
◆ patchUpPointers()
◆ setTireForceShaderData()
| void PxVehicleWheelsDynData::setTireForceShaderData |
( |
const PxU32 |
tireId, |
|
|
const void * |
tireForceShaderData |
|
) |
| |
Set the tire force shader data for a specific tire.
- Parameters
-
| [in] | tireId | is the wheel index |
| [in] | tireForceShaderData | is the data describing the tire. |
◆ setTireForceShaderFunction()
Set the tire force shader function.
- Parameters
-
| [in] | tireForceShaderFn | is the shader function that will be used to compute tire forces. |
◆ setToRestState()
| void PxVehicleWheelsDynData::setToRestState |
( |
| ) |
|
Set all wheels to their rest state.
- See also
- setup
◆ setUserData()
| void PxVehicleWheelsDynData::setUserData |
( |
const PxU32 |
tireIdx, |
|
|
void * |
userData |
|
) |
| |
Set the user data pointer for the specified wheel It has a default value of NULL.
- Parameters
-
| [in] | tireIdx | is the wheel index |
| [in] | userData | is the data to be associated with the wheel. |
◆ setWheelRotationAngle()
| void PxVehicleWheelsDynData::setWheelRotationAngle |
( |
const PxU32 |
wheelIdx, |
|
|
const PxReal |
angle |
|
) |
| |
Set the wheel rotation angle (radians) about the rolling axis of the specified wheel.
- Parameters
-
| [in] | wheelIdx | is the wheel index |
| [in] | angle | is the rotation angle to be applied to the wheel. |
◆ setWheelRotationSpeed()
| void PxVehicleWheelsDynData::setWheelRotationSpeed |
( |
const PxU32 |
wheelIdx, |
|
|
const PxReal |
speed |
|
) |
| |
Set the wheel rotation speed (radians per second) about the rolling axis for the specified wheel.
- Parameters
-
| [in] | wheelIdx | is the wheel index |
| [in] | speed | is the rotation speed to be applied to the wheel. |
◆ PxVehicleDrive4W
◆ PxVehicleDriveTank
◆ PxVehicleUpdate
| friend class PxVehicleUpdate |
|
friend |
◆ PxVehicleWheels
◆ mNbActiveWheels
| PxU32 PxVehicleWheelsDynData::mNbActiveWheels |
|
private |
Number of wheels (mNbActiveWheels <= (mNbWheels4*4))
◆ mNbWheels4
| PxU32 PxVehicleWheelsDynData::mNbWheels4 |
|
private |
Number of blocks of 4 wheels.
◆ mPad
| PxU32 PxVehicleWheelsDynData::mPad[3] |
|
private |
◆ mTireForceCalculators
| PxVehicleTireForceCalculator* PxVehicleWheelsDynData::mTireForceCalculators |
|
private |
Shader data and function for tire force calculations.
◆ mUserDatas
| void** PxVehicleWheelsDynData::mUserDatas |
|
private |
◆ mWheels4DynData
| PxVehicleWheels4DynData* PxVehicleWheelsDynData::mWheels4DynData |
|
private |
Dynamics data arranged in blocks of 4 wheels.
The documentation for this class was generated from the following file: