diff options
| author | Marijn Tamis <[email protected]> | 2017-07-03 11:49:08 +0200 |
|---|---|---|
| committer | Marijn Tamis <[email protected]> | 2017-07-03 11:49:08 +0200 |
| commit | cfa944ded7370fb5f22b1fb894ecf6b9bd3f7381 (patch) | |
| tree | 5cc014922d20561d87105d279b6f7eb3e628c6d9 /NvCloth/src/SwClothData.cpp | |
| parent | Fix windows line endings in github. (diff) | |
| download | nvcloth-cfa944ded7370fb5f22b1fb894ecf6b9bd3f7381.tar.xz nvcloth-cfa944ded7370fb5f22b1fb894ecf6b9bd3f7381.zip | |
NvCloth 1.1.1 Release. (22392725)v1.1.1
Diffstat (limited to 'NvCloth/src/SwClothData.cpp')
| -rw-r--r-- | NvCloth/src/SwClothData.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/NvCloth/src/SwClothData.cpp b/NvCloth/src/SwClothData.cpp index eddd821..f102bde 100644 --- a/NvCloth/src/SwClothData.cpp +++ b/NvCloth/src/SwClothData.cpp @@ -80,6 +80,7 @@ cloth::SwClothData::SwClothData(SwCloth& cloth, const SwFabric& fabric) mNumTriangles = uint32_t(fabric.mTriangles.size()) / 3; mDragCoefficient = 1.0f - expf(stiffnessExponent * cloth.mDragLogCoefficient); mLiftCoefficient = 1.0f - expf(stiffnessExponent * cloth.mLiftLogCoefficient); + mFluidDensity = cloth.mFluidDensity * 0.5f; //divide by 2 to so we don't have to compensate for double area from cross product in the solver mStartMotionConstraints = cloth.mMotionConstraints.mStart.size() ? array(cloth.mMotionConstraints.mStart.front()) : 0; mTargetMotionConstraints = |