remove default radius

This commit is contained in:
Irlan
2018-05-30 16:32:45 -03:00
parent 1babc1b406
commit 7bed29df5e
7 changed files with 20 additions and 21 deletions

View File

@ -39,7 +39,6 @@ public:
b3ClothDef def;
def.mesh = &m_rectangleClothMesh;
def.radius = 0.05f;
def.density = 0.2f;
def.structural = 10000.0f;
def.damping = 0.0f;

View File

@ -53,7 +53,6 @@ public:
// Create cloth
b3ClothDef def;
def.radius = 0.2f;
def.mesh = &m_shirtClothMesh;
def.density = 0.2f;
def.structural = 10000.0f;

View File

@ -40,7 +40,6 @@ public:
b3ClothDef def;
def.mesh = &m_rectangleClothMesh;
def.radius = 0.05f;
def.density = 0.2f;
def.structural = 10000.0f;
def.damping = 0.0f;

View File

@ -75,7 +75,6 @@ public:
b3ClothDef def;
def.mesh = &m_rectangleClothMesh;
def.radius = 0.2f;
def.density = 0.2f;
def.structural = 10000.0f;
@ -157,16 +156,16 @@ public:
g_draw->DrawSolidTriangle(n2, v1, v3, v2, color);
}
if (m_clothDragger.IsSelected() == true)
{
g_draw->DrawSegment(m_clothDragger.GetPointA(), m_clothDragger.GetPointB(), b3Color_white);
}
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);
}
}
static Test* Create()