PhysX SDK 3.2 API Reference: PxClothPhaseSolverConfig Struct Reference

PhysX SDK 3.2 API

PxClothPhaseSolverConfig Struct Reference
[Cloth]

Solver configuration parameters for a cloth fabric phase type. More...

#include <PxClothTypes.h>

List of all members.


Public Types

enum  SolverType {
  eINVALID,
  eFAST,
  eSTIFF,
  eBENDING,
  eZEROSTRETCH,
  eSHEARING
}

Public Member Functions

PX_INLINE PxClothPhaseSolverConfig ()
 constructor sets to default.

Public Attributes

SolverType solverType
 The type of solver to use for a specific phase type.
PxReal stiffness
 Stiffness of the cloth solver.
PxReal stretchStiffness
 Stiffness of the cloth solver under certain limits.
PxReal stretchLimit
 Limit to control when stretchStiffness has to be applied.

Detailed Description

Solver configuration parameters for a cloth fabric phase type.

See also:
PxCloth.setPhaseSolverConfig()

PxClothFabric for information on actual phase data in Cloth fabric


Member Enumeration Documentation

Enumerator:
eINVALID  solver is invalid and disabled
eFAST  Fast solver that may stretch.
eSTIFF  Stiff solver that handles stiff fabric well (but slower than eFAST).
eBENDING  Bending solver (use with eBENDING_ANGLE phases only).
eZEROSTRETCH  solver that guarantees fibers do not stretch (but not momentum preserving)
eSHEARING  (not yet implemented)


Member Data Documentation

The type of solver to use for a specific phase type.

In general, eFAST solver is faster than eSTIFF, but may converge slowly
for stiff fibers. So it's the best to use eSTIFF for fibers that are
desired to be stiff (e.g. along vertical edges) and use eFAST for other fibers.

The default is set to eFAST for all the fibers.

Referenced by PxClothPhaseSolverConfig().

Stiffness of the cloth solver.

Defines for the fiber edges how much of the distance error between current length and rest length to correct per iteration step (1/solverFequency). A value of 0 means no correction, a value of 1 corrects to rest length.

Referenced by PxClothPhaseSolverConfig().

Limit to control when stretchStiffness has to be applied.

StretchStiffness controls the target convergence rate in the solver if the ratio between fiber edge length and rest length lies within the following limits:

1.0 < edgelength/restlength < stretchLimit

Note:
Applies to eFAST solver only

Referenced by PxClothPhaseSolverConfig().

Stiffness of the cloth solver under certain limits.

Note:
Applies to eFAST solver only
See also:
stretchLimit

Referenced by PxClothPhaseSolverConfig().


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



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