35#include "foundation/PxSimpleTypes.h"
36#include "vehicle2/PxVehicleParams.h"
45struct PxVehicleCommandState;
46struct PxVehicleDirectDriveTransmissionCommandState;
47struct PxVehicleEngineDriveTransmissionCommandState;
48struct PxVehicleDirectDriveThrottleCommandResponseParams;
49struct PxVehicleWheelActuationState;
50struct PxVehicleWheelParams;
51struct PxVehicleTireForce;
52struct PxVehicleWheelRigidBody1dState;
53struct PxVehicleEngineParams;
54struct PxVehicleGearboxParams;
55struct PxVehicleAutoboxParams;
56struct PxVehicleEngineState;
57struct PxVehicleGearboxState;
58struct PxVehicleAutoboxState;
59struct PxVehicleClutchCommandResponseParams;
60struct PxVehicleClutchCommandResponseState;
61struct PxVehicleEngineDriveThrottleCommandResponseState;
62struct PxVehicleDifferentialState;
63struct PxVehicleMultiWheelDriveDifferentialParams;
64struct PxVehicleFourWheelDriveDifferentialParams;
65struct PxVehicleTankDriveDifferentialParams;
66struct PxVehicleFourWheelDriveDifferentialLegacyParams;
67struct PxVehicleClutchParams;
68struct PxVehicleWheelConstraintGroupState;
69struct PxVehicleClutchSlipState;
80void PxVehicleDirectDriveThrottleCommandResponseUpdate
81(
const PxReal throttle,
const PxVehicleDirectDriveTransmissionCommandState& transmissionCommands,
const PxReal longitudinalSpeed,
82 const PxU32 wheelId,
const PxVehicleDirectDriveThrottleCommandResponseParams& throttleResponseParams,
83 PxReal& throttleResponseState);
91void PxVehicleDirectDriveActuationStateUpdate
92(
const PxReal brakeTorque,
const PxReal driveTorque,
93 PxVehicleWheelActuationState& actuationState);
105void PxVehicleDirectDriveUpdate
106(
const PxVehicleWheelParams& wheelParams,
107 const PxVehicleWheelActuationState& actuationState,
108 const PxReal brakeTorque,
const PxReal driveTorque,
const PxVehicleTireForce& tireForce,
110 PxVehicleWheelRigidBody1dState& wheelRigidBody1dState);
135void PxVehicleAutoBoxUpdate
136(
const PxVehicleEngineParams& engineParams,
const PxVehicleGearboxParams& gearboxParams,
const PxVehicleAutoboxParams& autoboxParams,
137 const PxVehicleEngineState& engineState,
const PxVehicleGearboxState& gearboxState,
139 PxU32& targetGearCommand, PxVehicleAutoboxState& autoboxState,
153void PxVehicleGearCommandResponseUpdate
154(
const PxU32 targetGearCommand,
155 const PxVehicleGearboxParams& gearboxParams,
156 PxVehicleGearboxState& gearboxState);
164void PxVehicleClutchCommandResponseLinearUpdate
165(
const PxReal clutchCommand,
166 const PxVehicleClutchCommandResponseParams& clutchResponseParams,
167 PxVehicleClutchCommandResponseState& clutchResponse);
174void PxVehicleEngineDriveThrottleCommandResponseLinearUpdate
175(
const PxVehicleCommandState& commands,
176 PxVehicleEngineDriveThrottleCommandResponseState& throttleResponse);
194void PxVehicleEngineDriveActuationStateUpdate
195(
const PxVehicleAxleDescription& axleDescription,
196 const PxVehicleGearboxParams& gearboxParams,
197 const PxVehicleArrayData<const PxReal>& brakeResponseStates,
198 const PxVehicleEngineDriveThrottleCommandResponseState& throttleResponseState,
199 const PxVehicleGearboxState& gearboxState,
const PxVehicleDifferentialState& diffState,
const PxVehicleClutchCommandResponseState& clutchResponseState,
200 PxVehicleArrayData<PxVehicleWheelActuationState>& actuationStates);
213(
const PxVehicleFourWheelDriveDifferentialLegacyParams& diffParams,
214 const PxVehicleArrayData<const PxVehicleWheelRigidBody1dState>& wheelStates,
215 PxVehicleDifferentialState& diffState);
230void PxVehicleDifferentialStateUpdate
231(
const PxVehicleAxleDescription& axleDescription,
const PxVehicleFourWheelDriveDifferentialParams& diffParams,
232 const PxVehicleArrayData<const PxVehicleWheelRigidBody1dState>& wheelStates,
234 PxVehicleDifferentialState& diffState, PxVehicleWheelConstraintGroupState& wheelConstraintGroupState);
243void PxVehicleDifferentialStateUpdate
244(
const PxVehicleAxleDescription& axleDescription,
const PxVehicleMultiWheelDriveDifferentialParams& diffParams,
245 PxVehicleDifferentialState& diffState);
258void PxVehicleDifferentialStateUpdate
259(
const PxVehicleAxleDescription& axleDescription,
260 const PxVehicleArrayData<const PxVehicleWheelParams>& wheelParams,
const PxVehicleTankDriveDifferentialParams& diffParams,
261 const PxReal thrustCommand0, PxReal thrustCommand1,
262 PxVehicleDifferentialState& diffState, PxVehicleWheelConstraintGroupState& wheelConstraintGroupState);
274void PxVehicleGearboxUpdate
275(
const PxVehicleGearboxParams& gearboxParams,
277 PxVehicleGearboxState& gearboxState);
300void PxVehicleEngineDrivetrainUpdate
301(
const PxVehicleAxleDescription& axleDescription,
302 const PxVehicleArrayData<const PxVehicleWheelParams>& wheelParams,
303 const PxVehicleEngineParams& engineParams,
const PxVehicleClutchParams& clutchParams,
const PxVehicleGearboxParams& gearboxParams,
304 const PxVehicleArrayData<const PxReal>& brakeResponseStates,
305 const PxVehicleArrayData<const PxVehicleWheelActuationState>& actuationStates,
306 const PxVehicleArrayData<const PxVehicleTireForce>& tireForces,
307 const PxVehicleGearboxState& gearboxState,
const PxVehicleEngineDriveThrottleCommandResponseState& throttleResponse,
const PxVehicleClutchCommandResponseState& clutchResponse,
308 const PxVehicleDifferentialState& diffState,
const PxVehicleWheelConstraintGroupState* constraintGroupState,
310 PxVehicleArrayData<PxVehicleWheelRigidBody1dState>& wheelRigidbody1dStates,
311 PxVehicleEngineState& engineState, PxVehicleClutchSlipState& clutchState);
#define PX_DEPRECATED
Definition PxPreprocessor.h:418
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39