More consistency and pass velocity and position iterations to cloth constraint solver

This commit is contained in:
Irlan
2019-06-02 12:05:36 -03:00
parent f1429a5481
commit 46600010fe
12 changed files with 47 additions and 227 deletions

View File

@ -86,7 +86,7 @@ public:
{
Test::Step();
m_cloth->Step(g_testSettings->inv_hertz);
m_cloth->Step(g_testSettings->inv_hertz, g_testSettings->velocityIterations, g_testSettings->positionIterations);
m_cloth->Draw();

View File

@ -84,7 +84,7 @@ public:
{
Test::Step();
m_cloth->Step(g_testSettings->inv_hertz);
m_cloth->Step(g_testSettings->inv_hertz, g_testSettings->velocityIterations, g_testSettings->positionIterations);
m_cloth->Draw();

View File

@ -88,7 +88,7 @@ public:
{
Test::Step();
m_cloth->Step(g_testSettings->inv_hertz);
m_cloth->Step(g_testSettings->inv_hertz, g_testSettings->velocityIterations, g_testSettings->positionIterations);
m_cloth->Draw();

View File

@ -110,7 +110,7 @@ public:
{
Test::Step();
m_cloth->Step(g_testSettings->inv_hertz);
m_cloth->Step(g_testSettings->inv_hertz, g_testSettings->velocityIterations, g_testSettings->positionIterations);
const b3ClothMesh* mesh = m_cloth->GetMesh();