print energy

This commit is contained in:
Irlan
2018-05-20 02:47:40 -03:00
parent 10f08147ce
commit 9ae2dc4788

View File

@ -233,6 +233,9 @@ public:
g_draw->DrawString(b3Color_white, "Iterations = %u", step.iterations);
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);