diff --git a/src/physics/btKart.cpp b/src/physics/btKart.cpp index 24d52bbfc..dc1904740 100644 --- a/src/physics/btKart.cpp +++ b/src/physics/btKart.cpp @@ -996,6 +996,10 @@ void btKart::debugDraw(btIDebugDraw* debugDrawer) debugDrawer->drawLine(wheelPosWS, getWheelInfo(v).m_raycastInfo.m_contactPointWS, wheelColor); + // Draw the (interpolated) normal of the ground at the wheel position + debugDrawer->drawLine(getWheelInfo(v).m_raycastInfo.m_contactPointWS, + getWheelInfo(v).m_raycastInfo.m_contactPointWS+getWheelInfo(v).m_raycastInfo.m_contactNormalWS, + btVector3(0, 0, 1)); } // for i < getNumWheels btVector3 yellow(1.0f, 1.0f, 0.0f);