47 PX_CUDA_CALLABLE
PX_FORCE_INLINE PxReal getCellSize()
const {
return mSegmentLength + 2.0f * mSegmentRadius; }
48 PX_CUDA_CALLABLE
PX_FORCE_INLINE int getGridSize()
const {
return mGridSize[0] * mGridSize[1] * mGridSize[2]; }
49 PxHairSystemFlags::InternalType mFlags;
50 PxReal mSegmentLength;
51 PxReal mSegmentRadius;
52 PxReal mInterHairRepulsion;
53 PxReal mInterHairVelocityDamping;
54 PxReal mFrictionCoeff;
55 PxReal mBendingCompliance;
56 PxReal mTwistingCompliance;
59 PxReal mSelfCollisionContactDist;
60 PxReal mSelfCollisionRelaxation;
61 PxReal mLraRelaxation;
62 PxReal mShapeMatchingCompliance;
63 PxReal mShapeMatchingBeta;
64 PxU16 mShapeMatchingNumVertsPerGroup;
65 PxU16 mShapeMatchingNumVertsOverlap;
80 PxReal mSleepThreshold;
82 PxU16 mSolverIterationCounts;
86 const PxU32* mStrandPastEndIndices;
87 const PxReal* mBendingRestAngles;
96 PxU32* mStrandPastEndIndicesGpuSim;
97 PxVec4* mPositionInvMassGpuSim;
98 PxReal* mTwistingRestPositionsGpuSim;
103 PxU64 mRestPositionBodyNodeIdx;
107 PxU32 mNumRigidAttachments;
112 const PxReal* mLodProportionOfStrands;
113 const PxReal* mLodProportionOfVertices;
116 void setMaterial(PxU16 materialhandle)
118 mMaterialhandles.
pushBack(materialhandle);
121 void clearMaterials() { mMaterialhandles.
clear(); }
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Struct to specify attachment between a particle/vertex and a rigid.
Definition PxAttachment.h:49