remove default radius
This commit is contained in:
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user