PxVehicleLegacyFourWheelDriveDifferentialStateComponent
Defined in include/vehicle2/drivetrain/PxVehicleDrivetrainComponents.h
-
class PxVehicleLegacyFourWheelDriveDifferentialStateComponent : public PxVehicleComponent
Compute the per wheel drive torque split of a four wheel drive differential.
See also
Public Functions
-
inline PxVehicleLegacyFourWheelDriveDifferentialStateComponent()
-
inline virtual ~PxVehicleLegacyFourWheelDriveDifferentialStateComponent()
-
virtual void getDataForLegacyFourWheelDriveDifferentialStateComponent(const PxVehicleAxleDescription *&axleDescription, const PxVehicleFourWheelDriveDifferentialLegacyParams *&differentialParams, PxVehicleArrayData<const PxVehicleWheelRigidBody1dState> &wheelRigidbody1dStates, PxVehicleDifferentialState *&differentialState) = 0
-
inline virtual bool update(const PxReal dt, const PxVehicleSimulationContext &context)
Update function for a vehicle component.
See also
- Parameters
dt – [in] The timestep size to use for the update step.
context – [in] Vehicle simulation context holding global data or data that usually applies to a large group of vehicles.
- Returns
True if subsequent components in a sequence should get updated, false if the sequence should be aborted.
-
inline PxVehicleLegacyFourWheelDriveDifferentialStateComponent()