#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. | |
Public Attributes | |
PxReal | stiffness |
Stiffness of the stretch constraints. | |
PxReal | stiffnessMultiplier |
Stiffness multiplier of the cloth solver under certain limits. | |
PxReal | compressionLimit |
Limit to control when stiffnessMultiplier has to be applied. | |
PxReal | stretchLimit |
Limit to control when stiffnessMultiplier has to be applied. |
PxClothFabric for information on actual phase data in Cloth fabric
PX_INLINE PxClothStretchConfig::PxClothStretchConfig | ( | PxReal | stiffness_ = 1.0f , |
|
PxReal | stiffnessMultiplier_ = 1.0f , |
|||
PxReal | compressionLimit_ = 1.0f , |
|||
PxReal | stretchLimit_ = 1.0f | |||
) | [inline] |
Constructor initializes to default values.
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.
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.
Stiffness multiplier of the cloth solver under certain limits.
The valid range is [0, 1], the default multiplier is 1.0.
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.