Main Page
Class Hierarchy
Compound List
Compound Members
Include
cloth
PxClothTypes.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
3
*
4
* NVIDIA CORPORATION and its licensors retain all intellectual property
5
* and proprietary rights in and to this software, related documentation
6
* and any modifications thereto. Any use, reproduction, disclosure or
7
* distribution of this software and related documentation without an express
8
* license agreement from NVIDIA CORPORATION is strictly prohibited.
9
*/
10
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
11
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
12
13
14
#ifndef PX_PHYSICS_NX_CLOTH_TYPES
15
#define PX_PHYSICS_NX_CLOTH_TYPES
16
20
#include "
PxPhysXConfig.h
"
21
#include "
foundation/PxFlags.h
"
22
23
#include "
foundation/PxVec3.h
"
24
25
#ifndef PX_DOXYGEN
26
namespace
physx
27
{
28
#endif
29
36
struct
PxClothFlag
37
{
38
enum
Enum
39
{
40
eGPU = (1<<0),
41
eSWEPT_CONTACT = (1<<1),
42
eSCENE_COLLISION = (1<<2),
43
eCOUNT = 3
// internal use only
44
};
45
};
46
47
typedef
PxFlags<PxClothFlag::Enum,PxU16>
PxClothFlags
;
48
PX_FLAGS_OPERATORS
(
PxClothFlag::Enum
,
PxU16
)
49
50
58
struct
PxClothParticle
59
{
60
PxVec3
pos
;
61
PxReal
invWeight
;
62
66
PxClothParticle
() {}
67
PxClothParticle(
const
PxVec3
& pos_,
PxReal
invWeight_)
68
: pos(pos_), invWeight(invWeight_){}
69
};
70
76
struct
PxClothParticleMotionConstraint
77
{
78
PxVec3
pos
;
79
PxReal
radius
;
80
84
PxClothParticleMotionConstraint
() {}
85
PxClothParticleMotionConstraint
(
const
PxVec3
& p,
PxReal
r)
86
: pos(p), radius(r){}
87
};
88
94
struct
PxClothParticleSeparationConstraint
95
{
96
PxVec3
pos
;
97
PxReal
radius
;
98
102
PxClothParticleSeparationConstraint
() {}
103
PxClothParticleSeparationConstraint
(
const
PxVec3
& p,
PxReal
r)
104
: pos(p), radius(r){}
105
};
106
107
#ifndef PX_DOXYGEN
108
}
// namespace physx
109
#endif
110
112
#endif
Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.
www.nvidia.com