fix tension stepping

This commit is contained in:
Irlan 2018-05-26 01:41:18 -03:00
parent 43013ad80b
commit a2fe1ab86c

View File

@ -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);