From ef321a468c377e33987be20388fb2e8d59bac84c Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Thu, 7 Feb 2013 18:00:09 +0000 Subject: [PATCH] - add active display for physics debug view git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10361 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/bullet/debug/BulletRigidBodyDebugControl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engine/src/bullet-common/com/jme3/bullet/debug/BulletRigidBodyDebugControl.java b/engine/src/bullet-common/com/jme3/bullet/debug/BulletRigidBodyDebugControl.java index 5656c58ee..3bc10f3e6 100644 --- a/engine/src/bullet-common/com/jme3/bullet/debug/BulletRigidBodyDebugControl.java +++ b/engine/src/bullet-common/com/jme3/bullet/debug/BulletRigidBodyDebugControl.java @@ -80,9 +80,13 @@ public class BulletRigidBodyDebugControl extends AbstractPhysicsDebugControl { Node node = (Node) this.spatial; node.detachChild(geom); geom = DebugShapeFactory.getDebugShape(body.getCollisionShape()); - geom.setMaterial(debugAppState.DEBUG_BLUE); node.attachChild(geom); } + if(body.isActive()){ + geom.setMaterial(debugAppState.DEBUG_MAGENTA); + }else{ + geom.setMaterial(debugAppState.DEBUG_BLUE); + } applyPhysicsTransform(body.getPhysicsLocation(location), body.getPhysicsRotation(rotation)); geom.setLocalScale(body.getCollisionShape().getScale()); }