35#include "foundation/PxPreprocessor.h"
36#include "foundation/PxMath.h"
37#include "PxVehicleBrakingParams.h"
38#include "../commands/PxVehicleCommandStates.h"
39#include "../commands/PxVehicleCommandHelpers.h"
40#include "../drivetrain/PxVehicleDrivetrainParams.h"
60(
const PxReal* brakeCommands,
const PxU32 nbBrakeCommands,
const PxReal longitudinalSpeed,
61 const PxU32 wheelId,
const PxVehicleSizedArrayData<const PxVehicleBrakeCommandResponseParams>& brakeResponseParams,
62 PxReal& brakeResponseState)
64 PX_CHECK_AND_RETURN(nbBrakeCommands <= brakeResponseParams.size,
"PxVehicleBrakeCommandLinearUpdate: nbBrakes must be less than or equal to brakeResponseParams.size");
66 for (PxU32 i = 0; i < nbBrakeCommands; i++)
68 sum += PxVehicleNonLinearResponseCompute(brakeCommands[i], longitudinalSpeed, wheelId, brakeResponseParams[i]);
70 brakeResponseState = sum;
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39