forked from bartvdbraak/blender
BGE: draw contact points as sphere + line indicating the surface normal.
A screenshot can be found at http://www.pasteall.org/pic/80766 -- it's the yellow balls + lines. Reviewers: brita_, lordloki, campbellbarton Reviewed By: lordloki, campbellbarton Subscribers: lordloki Projects: #game_physics Differential Revision: https://developer.blender.org/D925
This commit is contained in:
parent
773d85ab32
commit
e5a852c3f3
@ -2996,7 +2996,8 @@ struct BlenderDebugDraw : public btIDebugDraw
|
||||
|
||||
virtual void drawContactPoint(const btVector3& PointOnB,const btVector3& normalOnB,float distance,int lifeTime,const btVector3& color)
|
||||
{
|
||||
//not yet
|
||||
drawLine(PointOnB, PointOnB + normalOnB, color);
|
||||
drawSphere(PointOnB, 0.1, color);
|
||||
}
|
||||
|
||||
virtual void setDebugMode(int debugMode)
|
||||
|
Loading…
Reference in New Issue
Block a user