32#include "foundation/PxTransform.h"
44#include "GuGeometryChecks.h"
92 void allocate(PxU16 size)
94 indices = PX_ALLOCATE(PxU16, size,
"MaterialIndicesStruct::allocate");
172 PX_CUDA_CALLABLE
void set(
const PxGeometry& g);
176 checkType<Geom>(getGeometry());
177 return reinterpret_cast<Geom&
>(mGeometry);
180 template<
class Geom> PX_CUDA_CALLABLE
PX_FORCE_INLINE const Geom& get()
const
182 checkType<Geom>(getGeometry());
183 return reinterpret_cast<const Geom&
>(mGeometry);
209 eOWNS_MATERIAL_IDX_MEMORY = (1<<0),
210 eIS_EXCLUSIVE = (1<<1),
211 eIDT_TRANSFORM = (1<<2),
212 eSOFT_BODY_SHAPE = (1<<3),
213 eCLOTH_SHAPE = (1<<4)
218 PX_FLAGS_OPERATORS(PxShapeCoreFlag::Enum,PxU8)
232 setDensityForFluid(800.0f);
254 mShapeCoreFlags.raise(PxShapeCoreFlag::eIDT_TRANSFORM);
256 mShapeCoreFlags.clear(PxShapeCoreFlag::eIDT_TRANSFORM);
259 PxReal mContactOffset;
262 PxU16 mMaterialIndex;
265 PxReal mTorsionalRadius;
266 PxReal mMinTorsionalPatchRadius;
270 return mGeometry.getGeometry().mTypePadding;
275 const_cast<PxGeometry&
>(mGeometry.getGeometry()).mTypePadding = density;
Definition PxvGeometry.h:153
Definition PxvGeometry.h:147
Class representing the geometry of a box.
Definition PxBoxGeometry.h:49
Class representing the geometry of a capsule.
Definition PxCapsuleGeometry.h:54
Convex mesh geometry class.
Definition PxConvexMeshGeometry.h:79
Custom geometry class. This class allows user to create custom geometries by providing a set of virtu...
Definition PxCustomGeometry.h:52
Container for bitfield flag variables associated with a specific enum type.
Definition PxFlags.h:73
A geometry object.
Definition PxGeometry.h:79
Hair system geometry class.
Definition PxHairSystemGeometry.h:45
Height field geometry class.
Definition PxHeightFieldGeometry.h:55
Output stream class for I/O.
Definition PxIO.h:114
Particle system geometry class.
Definition PxParticleSystemGeometry.h:51
Class describing a plane geometry.
Definition PxPlaneGeometry.h:56
PX_CUDA_CALLABLE PX_FORCE_INLINE bool isIdentity() const
returns true if quat is identity
Definition PxQuat.h:116
A class representing the geometry of a sphere.
Definition PxSphereGeometry.h:48
Tetrahedron mesh geometry class.
Definition PxTetrahedronMeshGeometry.h:50
Triangle mesh geometry class.
Definition PxTriangleMeshGeometry.h:81
PX_CUDA_CALLABLE PX_FORCE_INLINE bool isZero() const
tests for exact zero vector
Definition PxVec3.h:148
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
#define PX_COMPILE_TIME_ASSERT(exp)
Definition PxPreprocessor.h:428
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PxEMPTY
Definition Px.h:87
Definition PxvGeometry.h:69
Definition PxvGeometry.h:110
Enum
Definition PxGeometry.h:52
@ eINVALID
internal use only!
Definition PxGeometry.h:66
Definition PxvGeometry.h:135
Definition PxvGeometry.h:130
Definition PxvGeometry.h:120
Definition PxvGeometry.h:206
Definition PxvGeometry.h:125
Definition PxvGeometry.h:115
Definition GuGeometryChecks.h:55
Definition PxvGeometry.h:221