From ca32c59a58d37c1822e185a2d5f3d0d3e8943593 Mon Sep 17 00:00:00 2001 From: Marijn Tamis Date: Thu, 3 May 2018 18:22:48 +0200 Subject: NvCloth 1.1.4 Release. (24070740) --- NvCloth/src/SwClothData.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'NvCloth/src/SwClothData.cpp') diff --git a/NvCloth/src/SwClothData.cpp b/NvCloth/src/SwClothData.cpp index f102bde..84d85d4 100644 --- a/NvCloth/src/SwClothData.cpp +++ b/NvCloth/src/SwClothData.cpp @@ -73,6 +73,7 @@ cloth::SwClothData::SwClothData(SwCloth& cloth, const SwFabric& fabric) mTethers = fabric.mTethers.begin(); mNumTethers = uint32_t(fabric.mTethers.size()); + //1-(1 - stiffness)^stiffnessExponent mTetherConstraintStiffness = 1.0f - expf(stiffnessExponent * cloth.mTetherConstraintLogStiffness); mTetherConstraintScale = cloth.mTetherConstraintScale * fabric.mTetherLengthScale; -- cgit v1.2.3