From 42c8a998fbc827ad6c510020d3ab763504e8f0c4 Mon Sep 17 00:00:00 2001 From: Irlan <-> Date: Mon, 26 Mar 2018 16:59:04 -0300 Subject: [PATCH] store number of iterations --- src/bounce/dynamics/cloth/spring_cloth.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bounce/dynamics/cloth/spring_cloth.cpp b/src/bounce/dynamics/cloth/spring_cloth.cpp index 04cedff..624be35 100644 --- a/src/bounce/dynamics/cloth/spring_cloth.cpp +++ b/src/bounce/dynamics/cloth/spring_cloth.cpp @@ -332,6 +332,8 @@ void b3SpringCloth::Step(float32 dt) solver.Solve(forces); + m_step.iterations = solver.GetIterations(); + // Store constraint forces for physics logic for (u32 i = 0; i < m_massCount; ++i) {