13 #ifndef PX_VEHICLE_DRIVE_H
14 #define PX_VEHICLE_DRIVE_H
161 eMAX_NB_ANALOG_INPUTS=16
177 void setAnalogInput(
const PxU32 type,
const PxReal analogVal);
195 void setGearUp(
const bool digitalVal)
197 mGearUpPressed = digitalVal;
209 void setGearDown(
const bool digitalVal)
211 mGearDownPressed = digitalVal;
218 bool getGearUp()
const
220 return mGearUpPressed;
227 bool getGearDown()
const
229 return mGearDownPressed;
239 mUseAutoGears=useAutoGears;
248 return mUseAutoGears;
257 mUseAutoGears = !mUseAutoGears;
273 mCurrentGear = currentGear;
301 mTargetGear = targetGear;
327 mTargetGear=targetGear;
339 mTargetGear=targetGear;
340 mCurrentGear=targetGear;
350 mEnginespeed = speed;
374 return mGearSwitchTime;
386 return mAutoBoxSwitchTime;
398 PxReal mControlAnalogVals[eMAX_NB_ANALOG_INPUTS];
490 friend class PxVehicleUpdate;
503 bool isValid()
const;
508 void setToRestState();
513 static PxU32 computeByteSize(
const PxU32 nbWheels4);
532 const PxU32 nbDrivenWheels,
const PxU32 nbNonDrivenWheels);
552 #endif //PX_VEHICLE_DRIVE_H