RavEngine
Loading...
Searching...
No Matches
physx::PxVehicleWheels4DynData Class Reference
Collaboration diagram for physx::PxVehicleWheels4DynData:
[legend]

Classes

struct  CachedSuspLineSceneQuerytHitResult
 
struct  SuspLineRaycast
 
struct  SuspLineSweep
 

Public Member Functions

bool isValid () const
 
void setToRestState ()
 
void setInternalDynamicsToZero ()
 
void setTireContacts (const PxU32 *cachedHitCounts, const PxPlane *cachedHitPlanes, const PxF32 *cachedFrictionMultipliers, const PxTireContactIntersectionMethod::Enum *cachedQueryTypes)
 
void setVehicleConstraintShader (PxVehicleConstraintShader *shader)
 Used only internally.
 
PxVehicleConstraintShader & getVehicletConstraintShader () const
 

Static Public Member Functions

static void getBinaryMetaData (PxOutputStream &stream)
 

Public Attributes

PxReal mWheelSpeeds [4]
 Rotation speeds of wheels.
 
PxReal mCorrectedWheelSpeeds [4]
 Rotation speeds of wheels used to update the wheel rotation angles.
 
PxReal mWheelRotationAngles [4]
 Reported rotation angle about rolling axis.
 
PxReal mTireLowForwardSpeedTimers [4]
 Timers used to trigger sticky friction to hold the car perfectly at rest.
 
PxReal mTireLowSideSpeedTimers [4]
 Timers used to trigger sticky friction to hold the car perfectly at rest.
 
PxReal mJounces [4]
 Previous suspension jounce.
 
PxReal mSteerAngles [4]
 Previous steer angle.
 
PxU8 mQueryOrCachedHitResults [sizeof(SuspLineSweep)]
 We either have a fresh raycast that was just performed or a cached raycast result that will be used if no raycast was just performed.
 
const PxRaycastBuffer * mRaycastResults
 Set by PxVehicleSuspensionRaycasts.
 
const PxSweepBuffer * mSweepResults
 Set by PxVehicleSuspensionSweeps.
 
bool mHasCachedRaycastHitPlane
 Set true if a raycast hit plane has been recorded and cached. This requires a raycast to be performed and then followed by PxVehicleUpdates at least once. Reset to false in setToRestState.
 

Friends

class PxVehicleUpdate
 

Member Data Documentation

◆ mJounces

PxReal physx::PxVehicleWheels4DynData::mJounces[4]

Previous suspension jounce.

Note
Used only internally to compute the jounce speed by comparing cached jounce and latest jounce.

◆ mRaycastResults

const PxRaycastBuffer* physx::PxVehicleWheels4DynData::mRaycastResults

Set by PxVehicleSuspensionRaycasts.

See also
PxVehicleSuspensionRaycasts

◆ mSteerAngles

PxReal physx::PxVehicleWheels4DynData::mSteerAngles[4]

Previous steer angle.

Note
Used only internally to compute the rotation of the sweep pose.

◆ mSweepResults

const PxSweepBuffer* physx::PxVehicleWheels4DynData::mSweepResults

Set by PxVehicleSuspensionSweeps.

See also
PxVehicleSuspensionSweeps

◆ mTireLowForwardSpeedTimers

PxReal physx::PxVehicleWheels4DynData::mTireLowForwardSpeedTimers[4]

Timers used to trigger sticky friction to hold the car perfectly at rest.

Note
Used only internally.

◆ mTireLowSideSpeedTimers

PxReal physx::PxVehicleWheels4DynData::mTireLowSideSpeedTimers[4]

Timers used to trigger sticky friction to hold the car perfectly at rest.

Note
Used only internally.

◆ mWheelRotationAngles

PxReal physx::PxVehicleWheels4DynData::mWheelRotationAngles[4]

Reported rotation angle about rolling axis.

See also
PxVehicle4WSetToRestState, PxVehicle4WGetWheelRotationAngle

◆ mWheelSpeeds

PxReal physx::PxVehicleWheels4DynData::mWheelSpeeds[4]

Rotation speeds of wheels.

See also
PxVehicle4WSetToRestState, PxVehicle4WGetWheelRotationSpeed, PxVehicle4WGetEngineRotationSpeed

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