PxVehicleComputeSuspensionDirection
Defined in include/vehicle2/suspension/PxVehicleSuspensionHelpers.h
-
inline PxVec3 PxVehicleComputeSuspensionDirection(const PxVehicleSuspensionParams &suspensionParams, const PxTransform &rigidBodyPose)
Compute suspension travel direction in the world frame.
Note
The suspension travel direction is used to perform queries against the road geometry.
- Parameters
suspensionParams – [in] is a description of the suspension frame.
rigidBodyPose – [in] is the current pose of the vehicle’s rigid body.
- Returns
The return value is the suspension travel direction in the world frame.