Solver configuration parameters for the vertical and horizontal stretch phase types. More...
#include <PxCloth.h>
Public Member Functions | |
| PX_INLINE | PxClothStretchConfig (PxReal stiffness_=1.0f, PxReal stiffnessMultiplier_=1.0f, PxReal compressionLimit_=1.0f, PxReal stretchLimit_=1.0f) |
| Constructor initializes to default values. More... | |
Public Attributes | |
| PxReal | stiffness |
| Stiffness of the stretch constraints. More... | |
| PxReal | stiffnessMultiplier |
| Stiffness multiplier of the cloth solver under certain limits. More... | |
| PxReal | compressionLimit |
| Limit to control when stiffnessMultiplier has to be applied. More... | |
| PxReal | stretchLimit |
| Limit to control when stiffnessMultiplier has to be applied. More... | |
Solver configuration parameters for the vertical and horizontal stretch phase types.
|
inline |
Constructor initializes to default values.
| PxReal PxClothStretchConfig::compressionLimit |
Limit to control when stiffnessMultiplier has to be applied.
stiffnessMultiplier multiplies the normal stiffness if the ratio between constraint edge length and rest length lies in the [compressionLimit, 1] range. The valid range is [0, 1], the default limit is 1.0.
| PxReal PxClothStretchConfig::stiffness |
Stiffness of the stretch constraints.
Defines for the constraint edges how much of the distance error between current length and rest length to correct per stiffness period (see PxCloth::setStiffnessFrequency). A value of 0 means no correction, a value of 1 corrects to rest length. The default is 1.
| PxReal PxClothStretchConfig::stiffnessMultiplier |
Stiffness multiplier of the cloth solver under certain limits.
The valid range is [0, 1], the default multiplier is 1.0.
| PxReal PxClothStretchConfig::stretchLimit |
Limit to control when stiffnessMultiplier has to be applied.
stiffnessMultiplier multiplies the normal stiffness if the ratio between constraint edge length and rest length lies in the [1, stretchLimit] range. The valid range is [1, PX_MAX_F32), the default limit is 1.0.