RavEngine
Loading...
Searching...
No Matches
physx::vehicle2::PxVehicleEngineDrivetrainComponent Class Referenceabstract

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>

Inheritance diagram for physx::vehicle2::PxVehicleEngineDrivetrainComponent:
[legend]
Collaboration diagram for physx::vehicle2::PxVehicleEngineDrivetrainComponent:
[legend]

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.
 

Detailed Description

Forward integrate the angular speed of each wheel and of the engine, accounting for the state of the clutch, gearbox and differential.

See also
PxVehicleGearboxUpdate
PxVehicleEngineDrivetrainUpdate

Member Function Documentation

◆ getDataForEngineDrivetrainComponent()

virtual void physx::vehicle2::PxVehicleEngineDrivetrainComponent::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 
)
pure virtual

Provide vehicle data items for this component.

Parameters
[out]axleDescriptionidentifies the wheels on each axle.
[out]wheelParamsspecifies the radius of each wheel.
[out]engineParamsspecifies the engine's torque curve, idle revs and max revs.
[out]clutchParamsspecifies the maximum strength of the clutch.
[out]gearboxParamsspecifies the gear ratio of each gear.
[out]brakeResponseStatesstores the instantaneous brake brake torque to apply to each wheel.
[out]actuationStatesstores whether a brake and/or drive torque are to be applied to each wheel.
[out]tireForcesstores the lateral and longitudinal tire force that has developed on each tire.
[out]throttleResponseStatestores the response of the throttle to the input throttle command.
[out]clutchResponseStatestores the instantaneous clutch strength that arises from the input clutch command.
[out]differentialStatestores the instantaneous torque split between the wheels.
[out]constraintGroupStatestores the groups of wheels that are subject to constraints that require them to have the same angular or linear velocity.
[out]wheelRigidBody1dStatesstores the per wheel angular speed to be computed by the component.
[out]engineStatestores the engine rotation speed to be computed by the component.
[out]gearboxStatestores the state of the gearbox to be computed by the component.
[out]clutchStatestores the clutch slip to be computed by the component.
Note
If constraintGroupState is set to NULL it is assumed that there are no requirements for any wheels to have the same angular or linear velocity.

Implemented in snippetvehicle2::EngineDriveVehicle.

◆ update()

virtual bool physx::vehicle2::PxVehicleEngineDrivetrainComponent::update ( const PxReal  dt,
const PxVehicleSimulationContext &  context 
)
inlinevirtual

Update function for a vehicle component.

Parameters
[in]dtThe timestep size to use for the update step.
[in]contextVehicle 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.
See also
PxVehicleComponentSequence

Implements physx::vehicle2::PxVehicleComponent.


The documentation for this class was generated from the following file: