Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2015-01-27 21:05:43 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2015-01-29 00:09:58 +0300
commite5a852c3f38fc11f0cc2c8e5837a2fcd9721c9f8 (patch)
tree552335c5a4a4c7010bdc0f221918d6353ccda6e9 /source/gameengine
parent773d85ab320b0a115ef23321435649e1a8a1ef63 (diff)
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
Diffstat (limited to 'source/gameengine')
-rw-r--r--source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
index 2046ad07767..a7fd2e78b83 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)