RavEngine
Loading...
Searching...
No Matches
physx::vehicle2::PxVehicleDirectDriveThrottleCommandResponseParams Struct Reference

Distribute a throttle response to the wheels of a direct drive vehicle. More...

#include <PxVehicleDrivetrainParams.h>

Inheritance diagram for physx::vehicle2::PxVehicleDirectDriveThrottleCommandResponseParams:
[legend]
Collaboration diagram for physx::vehicle2::PxVehicleDirectDriveThrottleCommandResponseParams:
[legend]

Public Member Functions

PX_FORCE_INLINE PxVehicleDirectDriveThrottleCommandResponseParams transformAndScale (const PxVehicleFrame &srcFrame, const PxVehicleFrame &trgFrame, const PxVehicleScale &srcScale, const PxVehicleScale &trgScale) const
 
PX_FORCE_INLINE bool isValid (const PxVehicleAxleDescription &axleDesc) const
 

Additional Inherited Members

- Public Attributes inherited from physx::vehicle2::PxVehicleCommandResponseParams
PxVehicleCommandNonLinearResponseParams nonlinearResponse
 A nonlinear response to command value expressed as a lookup table of normalized response as a function of command value and longitudinal speed.
 
PxReal wheelResponseMultipliers [PxVehicleLimits::eMAX_NB_WHEELS]
 A description of the per wheel response multiplier to an input command.
 
PxF32 maxResponse
 The maximum response that occurs when the wheel response multiplier has value 1.0 and nonlinearResponse is in the default state of linear response.
 

Detailed Description

Distribute a throttle response to the wheels of a direct drive vehicle.

Note
The drive torque applied to each wheel on the ith axle is throttleCommand * maxResponse * wheelResponseMultipliers[i].
A typical use case is to set maxResponse to be the vehicle's maximum achievable drive torque that occurs when the steer command is equal to 1.0. The array wheelResponseMultipliers[i] would then be used to specify the maximum achievable drive torque per wheel as a fractional multiplier of the vehicle's maximum achievable steer angle.

The documentation for this struct was generated from the following file: