Defined in include/vehicle2/suspension/PxVehicleSuspensionParams.h

struct PxVehicleSuspensionForceLegacyParams

Suspension force is computed by converting suspenson state to suspension force under the assumption of a linear spring.


Public Functions

inline PxVehicleSuspensionForceLegacyParams transformAndScale(const PxVehicleFrame &srcFrame, const PxVehicleFrame &trgFrame, const PxVehicleScale &srcScale, const PxVehicleScale &trgScale) const
inline bool isValid() const

Public Members

PxReal stiffness

Spring strength of suspension.

Range: (0, inf)Unit: mass / (time^2)

PxReal damping

Spring damper rate of suspension.

Range: [0, inf)Unit: mass / time

PxReal restDistance

The suspension compression that balances the gravitational force acting on the sprung mass.

Range: (0, inf)Unit: length

PxReal sprungMass

The mass supported by the suspension spring.

Range: (0, inf)Unit: mass