diff --git a/examples/testbed/tests/tension_mapping.h b/examples/testbed/tests/tension_mapping.h index befebef..3660b65 100644 --- a/examples/testbed/tests/tension_mapping.h +++ b/examples/testbed/tests/tension_mapping.h @@ -103,7 +103,7 @@ public: void Step() { - float32 dt = g_testSettings->inv_hertz; + Test::Step(); m_cloth->Apply(); @@ -169,6 +169,9 @@ public: extern u32 b3_clothSolverIterations; g_draw->DrawString(b3Color_white, "Iterations = %u", b3_clothSolverIterations); + float32 E = m_cloth->GetEnergy(); + g_draw->DrawString(b3Color_white, "E = %f", E); + if (m_clothDragger.IsSelected() == true) { g_draw->DrawSegment(m_clothDragger.GetPointA(), m_clothDragger.GetPointB(), b3Color_white);