#include <PxVehicleUpdate.h>
Public Member Functions | |
PxWheelQueryResult () | |
Public Attributes | |
PxVec3 | suspLineStart |
Start point of suspension line raycast/sweep used in the raycast/sweep completed immediately before PxVehicleUpdates. | |
PxVec3 | suspLineDir |
Directions of suspension line raycast/sweep used in the raycast/sweep completed immediately before PxVehicleUpdates. | |
PxReal | suspLineLength |
Lengths of suspension line raycast/sweep used in raycast/sweep completed immediately before PxVehicleUpdates. | |
bool | isInAir |
If suspension travel limits forbid the wheel from touching the drivable surface then isInAir is true. | |
PxActor * | tireContactActor |
PxActor instance of the driving surface under the corresponding vehicle wheel. | |
PxShape * | tireContactShape |
PxShape instance of the driving surface under the corresponding vehicle wheel. | |
const PxMaterial * | tireSurfaceMaterial |
PxMaterial instance of the driving surface under the corresponding vehicle wheel. | |
PxU32 | tireSurfaceType |
Surface type integer that corresponds to the mapping between tireSurfaceMaterial and integer as described in PxVehicleDrivableSurfaceToTireFrictionPairs. | |
PxVec3 | tireContactPoint |
Point on the drivable surface hit by the most recent suspension raycast or sweep. | |
PxVec3 | tireContactNormal |
Normal on the drivable surface at the hit point of the most recent suspension raycast or sweep. | |
PxReal | tireFriction |
Friction experienced by the tire for the combination of tire type and surface type after accounting for the friction vs slip graph. | |
PxReal | suspJounce |
Compression of the suspension spring. | |
PxReal | suspSpringForce |
Magnitude of force applied by the suspension spring along the direction of suspension travel. | |
PxVec3 | tireLongitudinalDir |
Forward direction of the wheel/tire accounting for steer/toe/camber angle projected on to the contact plane of the drivable surface. | |
PxVec3 | tireLateralDir |
Lateral direction of the wheel/tire accounting for steer/toe/camber angle projected on to the contact plan of the drivable surface. | |
PxReal | longitudinalSlip |
Longitudinal slip of the tire. | |
PxReal | lateralSlip |
Lateral slip of the tire. | |
PxReal | steerAngle |
Steer angle of the wheel about the "up" vector accounting for input steer and toe and, if applicable, Ackermann steer correction. | |
PxTransform | localPose |
Local pose of the wheel. |
PxWheelQueryResult::PxWheelQueryResult | ( | ) | [inline] |
References PxVehicleDrivableSurfaceType::eSURFACE_TYPE_UNKNOWN, PxIdentity, and PxMemZero().
If suspension travel limits forbid the wheel from touching the drivable surface then isInAir is true.
If no raycast/sweep for the corresponding suspension was performed immediately prior to PxVehicleUpdates then isInAir is computed using the contact plane that was hit by the most recent suspension line raycast/sweep.
Lateral slip of the tire.
The lateral slip angle is approximately PxAtan(vx / PxAbs(vz)) where vx and vz are the components of rigid body velocity at the wheel base along the wheel's lateral and longitudinal directions, respectively.
If no raycast or sweep for the corresponding suspension was performed immediately prior to PxVehicleUpdates then the tire lateral slip is computed using the contact plane that was hit by the most recent suspension line raycast or sweep.
Local pose of the wheel.
Longitudinal slip of the tire.
The longitudinal slip is approximately (w*r - vz) / PxAbs(vz) where w is the angular speed of the wheel, r is the radius of the wheel, and vz component of rigid body velocity computed at the wheel base along the longitudinal direction of the tire.
If no raycast or sweep for the corresponding suspension was performed immediately prior to PxVehicleUpdates then the tire longitudinal slip is computed using the contact plane that was hit by the most recent suspension line raycast or sweep.
Steer angle of the wheel about the "up" vector accounting for input steer and toe and, if applicable, Ackermann steer correction.
Compression of the suspension spring.
If no raycast or sweep for the corresponding suspension was performed immediately prior to PxVehicleUpdates then the suspension compression is computed using the contact plane that was hit by the most recent suspension line raycast or sweep.
Directions of suspension line raycast/sweep used in the raycast/sweep completed immediately before PxVehicleUpdates.
Lengths of suspension line raycast/sweep used in raycast/sweep completed immediately before PxVehicleUpdates.
Start point of suspension line raycast/sweep used in the raycast/sweep completed immediately before PxVehicleUpdates.
Magnitude of force applied by the suspension spring along the direction of suspension travel.
If no raycast or sweep for the corresponding suspension was performed immediately prior to PxVehicleUpdates then the suspension spring force is computed using the contact plane that was hit by the most recent suspension line raycast or sweep.
PxActor instance of the driving surface under the corresponding vehicle wheel.
If no raycast/sweep for the corresponding suspension was performed immediately prior to PxVehicleUpdates then NULL is stored.
Normal on the drivable surface at the hit point of the most recent suspension raycast or sweep.
If no raycast or sweep for the corresponding suspension was performed immediately prior to PxVehicleUpdates then (0,0,0) is stored.
Point on the drivable surface hit by the most recent suspension raycast or sweep.
If no raycast or sweep for the corresponding suspension was performed immediately prior to PxVehicleUpdates then (0,0,0) is stored.
PxShape instance of the driving surface under the corresponding vehicle wheel.
If no raycast/sweep for the corresponding suspension was performed immediately prior to PxVehicleUpdates then NULL is stored.
Friction experienced by the tire for the combination of tire type and surface type after accounting for the friction vs slip graph.
If no raycast or sweep for the corresponding suspension was performed immediately prior to PxVehicleUpdates then the stored tire friction is the value computed in PxVehicleUpdates that immediately followed the last raycast or sweep.
Lateral direction of the wheel/tire accounting for steer/toe/camber angle projected on to the contact plan of the drivable surface.
If no raycast or sweep for the corresponding suspension was performed immediately prior to PxVehicleUpdates then the tire lateral direction is computed using the contact plane that was hit by the most recent suspension line raycast or sweep.
Forward direction of the wheel/tire accounting for steer/toe/camber angle projected on to the contact plane of the drivable surface.
If no raycast or sweep for the corresponding suspension was performed immediately prior to PxVehicleUpdates then the tire longitudinal direction is computed using the contact plane that was hit by the most recent suspension line raycast or sweep.
PxMaterial instance of the driving surface under the corresponding vehicle wheel.
If no raycast/sweep for the corresponding suspension was performed immediately prior to PxVehicleUpdates then NULL is stored.
Surface type integer that corresponds to the mapping between tireSurfaceMaterial and integer as described in PxVehicleDrivableSurfaceToTireFrictionPairs.
If no raycast/sweep for the corresponding suspension was performed immediately prior to PxVehicleUpdates then PxVehicleDrivableSurfaceType::eSURFACE_TYPE_UNKNOWN is stored.