Visualise the (interpolated) normal at the points where the wheels touch the ground.
This commit is contained in:
parent
cdde932908
commit
a4264cc063
@ -996,6 +996,10 @@ void btKart::debugDraw(btIDebugDraw* debugDrawer)
|
|||||||
debugDrawer->drawLine(wheelPosWS,
|
debugDrawer->drawLine(wheelPosWS,
|
||||||
getWheelInfo(v).m_raycastInfo.m_contactPointWS,
|
getWheelInfo(v).m_raycastInfo.m_contactPointWS,
|
||||||
wheelColor);
|
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
|
} // for i < getNumWheels
|
||||||
btVector3 yellow(1.0f, 1.0f, 0.0f);
|
btVector3 yellow(1.0f, 1.0f, 0.0f);
|
||||||
|
Loading…
Reference in New Issue
Block a user