fix and improve circle debug drawing

This commit is contained in:
Irlan
2017-03-03 16:46:13 -03:00
parent edd29d729a
commit 03ebca5728
4 changed files with 92 additions and 42 deletions

View File

@ -209,7 +209,8 @@ public:
{
g_debugDraw->DrawSegment(p1, out.point, b3Color(0.0f, 1.0f, 0.0f));
g_debugDraw->DrawPoint(out.point, 4.0f, b3Color(1.0f, 0.0f, 0.0f));
g_debugDraw->DrawSegment(out.point, out.point + out.normal, b3Color(1.0f, 1.0f, 1.0f));
g_debugDraw->DrawSegment(out.point, out.normal, b3Color(1.0f, 1.0f, 1.0f));
g_debugDraw->DrawSolidCircle(out.normal, out.point + 0.05f * out.normal, 1.0f, b3Color(1.0f, 1.0f, 1.0f));
}
else
{

View File

@ -134,7 +134,7 @@ public:
b3World m_world;
b3RayCastSingleOutput m_rayHit;
b3RayCastSingleOutput m_rayHit; // local space
b3BoxHull m_groundHull;
b3BoxHull m_boxHull;
b3BoxHull m_tallHull;