13 #ifndef PX_VEHICLE_CORE_COMPONENTS_H
14 #define PX_VEHICLE_CORE_COMPONENTS_H
81 eMAX_NB_ENGINE_TORQUE_CURVE_ENTRIES = 8
88 mDampingRateFullThrottle(0.15f),
89 mDampingRateZeroThrottleClutchEngaged(2.0f),
90 mDampingRateZeroThrottleClutchDisengaged(0.35f)
92 mTorqueCurve.addPair(0.0f, 0.8f);
93 mTorqueCurve.addPair(0.33f, 1.0f);
94 mTorqueCurve.addPair(1.0f, 0.8f);
97 mRecipMaxOmega=1.0f/mMaxOmega;
342 mDownRatios[i]=0.50f;
432 : mFrontRearSplit(0.45f),
433 mFrontLeftRightSplit(0.5f),
434 mRearLeftRightSplit(0.5f),
524 friend class PxVehicleUpdate;
530 mInvNbDrivenWheels=0.0f;
540 void setDrivenWheel(
const PxU32 wheelId,
const bool drivenState);
545 bool getIsDrivenWheel(
const PxU32 wheelId)
const;
554 bool isValid()
const;
559 PxU32 getDrivenWheelStatus()
const;
560 void setDrivenWheelStatus(
PxU32 status);
576 mAxleSeparation(0.0f)
657 mEstimateIterations(5)
753 : mMinNormalisedLoad(0),
754 mMinFilteredNormalisedLoad(0.2308f),
755 mMaxNormalisedLoad(3.0f),
756 mMaxFilteredNormalisedLoad(3.0f)
758 mDenominator=1.0f/(mMaxNormalisedLoad - mMinNormalisedLoad);
806 friend class PxVehicleWheels4SimData;
814 mMaxBrakeTorque(1500.0f),
815 mMaxHandBrakeTorque(0.0f),
940 bool isValid()
const;
948 friend class PxVehicleWheels4SimData;
951 : mSpringStrength(0.0f),
952 mSpringDamperRate(0.0f),
953 mMaxCompression(0.3f),
957 mCamberAtMaxCompression(0.0f),
958 mCamberAtMaxDroop(0.0f),
959 mRecipMaxCompression(1.0f),
1090 void setMassAndPreserveNaturalFrequency(
const PxReal newSprungMass)
1092 const PxF32 oldStrength = mSpringStrength;
1093 const PxF32 oldSprungMass = mSprungMass;
1094 const PxF32 newStrength = oldStrength * (newSprungMass / oldSprungMass);
1095 mSpringStrength = newStrength;
1096 mSprungMass = newSprungMass;
1118 bool isValid()
const;
1125 friend class PxVehicleWheels4SimData;
1129 mLatStiffY(0.3125f*(180.0f /
PxPi)),
1130 mLongitudinalStiffnessPerUnitGravity(1000.0f),
1131 mCamberStiffnessPerUnitGravity(0.1f*(180.0f /
PxPi)),
1134 mFrictionVsSlipGraph[0][0]=0.0f;
1135 mFrictionVsSlipGraph[0][1]=1.0f;
1136 mFrictionVsSlipGraph[1][0]=0.1f;
1137 mFrictionVsSlipGraph[1][1]=1.0f;
1138 mFrictionVsSlipGraph[2][0]=1.0f;
1139 mFrictionVsSlipGraph[2][1]=1.0f;
1141 mRecipLongitudinalStiffnessPerUnitGravity=1.0f/mLongitudinalStiffnessPerUnitGravity;
1143 mFrictionVsSlipGraphRecipx1Minusx0=1.0f/(mFrictionVsSlipGraph[1][0]-mFrictionVsSlipGraph[0][0]);
1144 mFrictionVsSlipGraphRecipx2Minusx1=1.0f/(mFrictionVsSlipGraph[2][0]-mFrictionVsSlipGraph[1][0]);
1295 bool isValid()
const;
1303 #endif //PX_VEHICLE_CORE_COMPONENTS_H