[Bf-blender-cvs] [e5a852c] master: BGE: draw contact points as sphere + line indicating the surface normal.
Sybren A. Stüvel
noreply at git.blender.org
Wed Jan 28 22:12:56 CET 2015
Commit: e5a852c3f38fc11f0cc2c8e5837a2fcd9721c9f8
Author: Sybren A. Stüvel
Date: Tue Jan 27 19:05:43 2015 +0100
Branches: master
https://developer.blender.org/rBe5a852c3f38fc11f0cc2c8e5837a2fcd9721c9f8
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
===================================================================
M source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
===================================================================
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
index 2046ad0..a7fd2e7 100644
--- a/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
+++ b/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
@@ -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)
More information about the Bf-blender-cvs
mailing list