14 #ifndef PX_VEHICLE_WHEELS_H
15 #define PX_VEHICLE_WHEELS_H
32 class PxVehicleWheels4SimData;
33 class PxVehicleWheels4DynData;
34 class PxVehicleTireForceCalculator;
57 friend class PxVehicleUpdate;
78 void setChassisMass(
const PxF32 chassisMass);
124 const PxVec3& getSuspTravelDirection(
const PxU32 id)
const;
130 const PxVec3& getSuspForceAppPointOffset(
const PxU32 id)
const;
136 const PxVec3& getTireForceAppPointOffset(
const PxU32 id)
const;
141 const PxVec3& getWheelCentreOffset(
const PxU32 id)
const;
152 PxI32 getWheelShapeMapping(
const PxU32 wheelId)
const;
164 return mNormalisedLoadFilter;
193 void setSuspTravelDirection(
const PxU32 id,
const PxVec3& dir);
201 void setSuspForceAppPointOffset(
const PxU32 id,
const PxVec3& offset);
209 void setTireForceAppPointOffset(
const PxU32 id,
const PxVec3& offset);
217 void setWheelCentreOffset(
const PxU32 id,
const PxVec3& offset);
239 void setWheelShapeMapping(
const PxU32 wheelId,
const PxI32 shapeId);
248 void setSceneQueryFilterData(
const PxU32 suspId,
const PxFilterData& sqFilterData);
284 void disableWheel(
const PxU32 wheel);
292 void enableWheel(
const PxU32 wheel);
298 bool getIsWheelDisabled(
const PxU32 wheel)
const;
330 void setSubStepCount(
const PxReal thresholdLongitudinalSpeed,
const PxU32 lowForwardSpeedSubStepCount,
const PxU32 highForwardSpeedSubStepCount);
349 void setMinLongSlipDenominator(
const PxReal minLongSlipDenominator);
412 bool isValid()
const;
461 friend class PxVehicleUpdate;
470 void setToRestState();
483 void setTireForceShaderData(
const PxU32 tireId,
const void* tireForceShaderData);
488 const void* getTireForceShaderData(
const PxU32 tireId)
const;
495 void setWheelRotationSpeed(
const PxU32 wheelIdx,
const PxReal speed);
500 PxReal getWheelRotationSpeed(
const PxU32 wheelIdx)
const;
507 void setWheelRotationAngle(
const PxU32 wheelIdx,
const PxReal angle);
512 PxReal getWheelRotationAngle(
const PxU32 wheelIdx)
const;
520 void setUserData(
const PxU32 tireIdx,
void* userData);
525 void* getUserData(
const PxU32 tireIdx)
const;
545 bool isValid()
const;
595 friend class PxVehicleUpdate;
596 friend class PxVehicleConstraintShader;
618 PxReal computeForwardSpeed()
const;
624 PxReal computeSidewaysSpeed()
const;
641 void setToRestState();
646 bool isValid()
const;
651 static PxU32 computeByteSize(
const PxU32 nbWheels4);
670 const PxU32 nbDrivenWheels,
const PxU32 nbNonDrivenWheels);
723 #endif //PX_VEHICLE_WHEELS_H