Defined in include/vehicle2/drivetrain/PxVehicleDrivetrainComponents.h

Inheritance Relationships

Base Type

class PxVehicleDirectDrivetrainComponent : public PxVehicleComponent

Forward integrate the angular speed of each wheel on a vehicle by integrating the brake and drive torque applied to each wheel and the torque that develops on the tire as a response to the longitudinal tire force.

Public Functions

inline PxVehicleDirectDrivetrainComponent()
inline virtual ~PxVehicleDirectDrivetrainComponent()
virtual void getDataForDirectDrivetrainComponent(const PxVehicleAxleDescription *&axleDescription, PxVehicleArrayData<const PxReal> &brakeResponseStates, PxVehicleArrayData<const PxReal> &throttleResponseStates, PxVehicleArrayData<const PxVehicleWheelParams> &wheelParams, PxVehicleArrayData<const PxVehicleWheelActuationState> &actuationStates, PxVehicleArrayData<const PxVehicleTireForce> &tireForces, PxVehicleArrayData<PxVehicleWheelRigidBody1dState> &wheelRigidBody1dStates) = 0
inline virtual bool update(const PxReal dt, const PxVehicleSimulationContext &context)

Update function for a vehicle component.

  • 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.


True if subsequent components in a sequence should get updated, false if the sequence should be aborted.