RavEngine
Loading...
Searching...
No Matches
physx::vehicle2::PxVehicleSuspensionStateCalculationParams Struct Reference

Public Member Functions

PX_FORCE_INLINE PxVehicleSuspensionStateCalculationParams transformAndScale (const PxVehicleFrame &srcFrame, const PxVehicleFrame &trgFrame, const PxVehicleScale &srcScale, const PxVehicleScale &trgScale) const
 
PX_FORCE_INLINE bool isValid () const
 

Public Attributes

PxVehicleSuspensionJounceCalculationType::Enum suspensionJounceCalculationType
 
bool limitSuspensionExpansionVelocity
 Limit the suspension expansion dynamics.
 

Member Data Documentation

◆ limitSuspensionExpansionVelocity

bool physx::vehicle2::PxVehicleSuspensionStateCalculationParams::limitSuspensionExpansionVelocity

Limit the suspension expansion dynamics.

If a hit with the ground is detected, the suspension jounce will be set such that the wheel is placed on the ground. This can result in large changes to jounce within a single simulation frame, if the ground surface has high frequency or if the simulation time step is large. As a result, large damping forces can evolve and cause undesired behavior. If this parameter is set to true, the suspension expansion speed will be limited to what can be achieved given the time step, suspension stiffness etc. As a consequence, handling of the vehicle will be affected as the wheel might loose contact with the ground more easily.


The documentation for this struct was generated from the following file: