|
RavEngine
|
Forward integrate the angular speed of each wheel and of the engine, accounting for the state of the clutch, gearbox and differential. More...
#include <PxVehicleDrivetrainComponents.h>
Public Member Functions | |
| virtual void | getDataForEngineDrivetrainComponent (const PxVehicleAxleDescription *&axleDescription, PxVehicleArrayData< const PxVehicleWheelParams > &wheelParams, const PxVehicleEngineParams *&engineParams, const PxVehicleClutchParams *&clutchParams, const PxVehicleGearboxParams *&gearboxParams, PxVehicleArrayData< const PxReal > &brakeResponseStates, PxVehicleArrayData< const PxVehicleWheelActuationState > &actuationStates, PxVehicleArrayData< const PxVehicleTireForce > &tireForces, const PxVehicleEngineDriveThrottleCommandResponseState *&throttleResponseState, const PxVehicleClutchCommandResponseState *&clutchResponseState, const PxVehicleDifferentialState *&differentialState, const PxVehicleWheelConstraintGroupState *&constraintGroupState, PxVehicleArrayData< PxVehicleWheelRigidBody1dState > &wheelRigidBody1dStates, PxVehicleEngineState *&engineState, PxVehicleGearboxState *&gearboxState, PxVehicleClutchSlipState *&clutchState)=0 |
| Provide vehicle data items for this component. | |
| virtual bool | update (const PxReal dt, const PxVehicleSimulationContext &context) |
| Update function for a vehicle component. | |
Forward integrate the angular speed of each wheel and of the engine, accounting for the state of the clutch, gearbox and differential.
|
pure virtual |
Provide vehicle data items for this component.
| [out] | axleDescription | identifies the wheels on each axle. |
| [out] | wheelParams | specifies the radius of each wheel. |
| [out] | engineParams | specifies the engine's torque curve, idle revs and max revs. |
| [out] | clutchParams | specifies the maximum strength of the clutch. |
| [out] | gearboxParams | specifies the gear ratio of each gear. |
| [out] | brakeResponseStates | stores the instantaneous brake brake torque to apply to each wheel. |
| [out] | actuationStates | stores whether a brake and/or drive torque are to be applied to each wheel. |
| [out] | tireForces | stores the lateral and longitudinal tire force that has developed on each tire. |
| [out] | throttleResponseState | stores the response of the throttle to the input throttle command. |
| [out] | clutchResponseState | stores the instantaneous clutch strength that arises from the input clutch command. |
| [out] | differentialState | stores the instantaneous torque split between the wheels. |
| [out] | constraintGroupState | stores the groups of wheels that are subject to constraints that require them to have the same angular or linear velocity. |
| [out] | wheelRigidBody1dStates | stores the per wheel angular speed to be computed by the component. |
| [out] | engineState | stores the engine rotation speed to be computed by the component. |
| [out] | gearboxState | stores the state of the gearbox to be computed by the component. |
| [out] | clutchState | stores the clutch slip to be computed by the component. |
Implemented in snippetvehicle2::EngineDriveVehicle.
|
inlinevirtual |
Update function for a vehicle component.
| [in] | dt | The timestep size to use for the update step. |
| [in] | context | Vehicle simulation context holding global data or data that usually applies to a large group of vehicles. |
Implements physx::vehicle2::PxVehicleComponent.