PxClothCollisionData Class Reference
[Cloth]
Collision data used for cloth-sphere and cloth-capsule collision.
More...
#include <PxClothCollisionData.h>
Collaboration diagram for PxClothCollisionData:

Public Member Functions | |
PX_INLINE | PxClothCollisionData () |
constructor sets to default. | |
PX_INLINE void | setToDefault () |
(re)sets the structure to the default. | |
PX_INLINE bool | isValid () const |
Returns true if the descriptor is valid. | |
Public Attributes | |
PxU32 | numSpheres |
total number of spheres, no more than 32 | |
const PxClothCollisionSphere * | spheres |
sphere data array | |
PxU32 | numPairs |
number of capsules, no more than 32 | |
const PxU32 * | pairIndexBuffer |
capsule indices (into the sphere data array) |
Detailed Description
Collision data used for cloth-sphere and cloth-capsule collision.This structure is used to define radius and position of all the collision spheres. Furthermore, it is possible to build collision capsules between the specified spheres by providing index pairs pointing into the sphere data array
- Note:
- one can reuse the same sphere to create multiple capsules sharing the sphere.
However, duplicating the same capsules will hurt the performance as well as the stability of the solver.
Member Data Documentation
The documentation for this class 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