PxVehicleDirectDriveActuationStateComponent
Defined in include/vehicle2/drivetrain/PxVehicleDrivetrainComponents.h
-
class PxVehicleDirectDriveActuationStateComponent : public PxVehicleComponent
Determine the actuation state for each wheel of a direct drive vehicle.
See also
See also
PxVehicleDirectDriveActuationStateUpdate
Note
The actuation state for each wheel contains a binary record of whether brake and drive torque are to be applied to the wheel.
Public Functions
-
inline PxVehicleDirectDriveActuationStateComponent()
-
inline virtual ~PxVehicleDirectDriveActuationStateComponent()
-
virtual void getDataForDirectDriveActuationStateComponent(const PxVehicleAxleDescription *&axleDescription, PxVehicleArrayData<const PxReal> &brakeResponseStates, PxVehicleArrayData<const PxReal> &throttleResponseStates, PxVehicleArrayData<PxVehicleWheelActuationState> &actuationStates) = 0
Provide vehicle data items for this component.
- Parameters
axleDescription – [out] identifies the wheels on each axle.
brakeResponseStates – [out] The brake response states.
throttleResponseStates – [out] The throttle response states.
actuationStates – [out] The actuation states.
-
inline virtual bool update(const PxReal dt, const PxVehicleSimulationContext &context)
Compute the actuation state for each wheel given the brake, handbrake and throttle states.
\
-
inline PxVehicleDirectDriveActuationStateComponent()