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.

Deprecated:

This API was introduced with the new Vehicle API for transition purposes but will be removed in a future version.

See also

PxVehicleDifferentialStateUpdate

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

PxVehicleComponentSequence

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.