Public Member Functions | Public Attributes | List of all members
PxClothMotionConstraintConfig Struct Reference

Solver configuration parameters for the tether phases. More...

#include <PxCloth.h>

Public Member Functions

PX_INLINE PxClothMotionConstraintConfig (PxReal radiiScale=1.0f, PxReal radiiBias=0.0f, PxReal consStiffness=1.0f)
 Constructor sets to default. More...
 

Public Attributes

PxReal scale
 Scale of motion constraint radii. More...
 
PxReal bias
 Bias of motion constraint radii. More...
 
PxReal stiffness
 Stiffness of the motion constraints. More...
 

Detailed Description

Solver configuration parameters for the tether phases.

See Also
PxCloth.setTetherConfig()
PxClothFabric for information on actual tether constraints in Cloth fabric.

Constructor & Destructor Documentation

PX_INLINE PxClothMotionConstraintConfig::PxClothMotionConstraintConfig ( PxReal  radiiScale = 1.0f,
PxReal  radiiBias = 0.0f,
PxReal  consStiffness = 1.0f 
)
inline

Constructor sets to default.

Member Data Documentation

PxReal PxClothMotionConstraintConfig::bias

Bias of motion constraint radii.

The motion constraint radius is computed as constraint.radius * config.scale + config.bias. The default bias is 0.0.

PxReal PxClothMotionConstraintConfig::scale

Scale of motion constraint radii.

The motion constraint radius is computed as constraint.radius * config.scale + config.bias. The default scale is 1.0.

PxReal PxClothMotionConstraintConfig::stiffness

Stiffness of the motion constraints.

Defines for the motion constraints how much of the error between current distance and constraint radius 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 stiffness is 1.


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


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com