rename contact areas to contact polygons

This commit is contained in:
Irlan 2018-04-07 01:28:48 -03:00
parent 5401e8aba2
commit 54202454ea
6 changed files with 7 additions and 7 deletions

View File

@ -405,7 +405,7 @@ static void Interface()
ImGui::Checkbox("Contact Points", &g_settings.drawContactPoints);
ImGui::Checkbox("Contact Normals", &g_settings.drawContactNormals);
ImGui::Checkbox("Contact Tangents", &g_settings.drawContactTangents);
ImGui::Checkbox("Contact Areas", &g_settings.drawContactAreas);
ImGui::Checkbox("Contact Polygons", &g_settings.drawContactPolygons);
ImGui::Checkbox("Statistics", &g_settings.drawStats);
ImGui::Checkbox("Profile", &g_settings.drawProfile);

View File

@ -136,7 +136,7 @@ void Test::Step()
drawFlags += g_settings.drawContactPoints * b3Draw::e_contactPointsFlag;
drawFlags += g_settings.drawContactNormals * b3Draw::e_contactNormalsFlag;
drawFlags += g_settings.drawContactTangents * b3Draw::e_contactTangentsFlag;
drawFlags += g_settings.drawContactAreas * b3Draw::e_contactAreasFlag;
drawFlags += g_settings.drawContactPolygons * b3Draw::e_contactPolygonsFlag;
g_debugDraw->SetFlags(drawFlags);
m_world.DebugDraw();

View File

@ -53,7 +53,7 @@ struct Settings
drawContactPoints = true;
drawContactNormals = false;
drawContactTangents = false;
drawContactAreas = false;
drawContactPolygons = false;
drawStats = false;
drawProfile = false;
drawGrid = true;
@ -84,7 +84,7 @@ struct Settings
bool drawContactPoints;
bool drawContactNormals;
bool drawContactTangents;
bool drawContactAreas;
bool drawContactPolygons;
bool drawStats;
bool drawProfile;
bool drawGrid;

View File

@ -54,7 +54,7 @@ public :
e_contactPointsFlag = 0x0008,
e_contactNormalsFlag = 0x0010,
e_contactTangentsFlag = 0x0020,
e_contactAreasFlag = 0x0040,
e_contactPolygonsFlag = 0x0040,
e_aabbsFlag = 0x0080,
};

View File

@ -175,4 +175,4 @@ struct b3Version
// The current version of Bounce.
extern b3Version b3_version;
#endif
#endif

View File

@ -130,7 +130,7 @@ void b3World::DebugDraw() const
b3_debugDraw->DrawSegment(p, p + t2, b3Color_yellow);
}
if (flags & b3Draw::e_contactAreasFlag)
if (flags & b3Draw::e_contactPolygonsFlag)
{
b3_debugDraw->DrawSolidPolygon(wm.normal, points, m->pointCount, b3Color_pink);
}