From 9037d7bbee2172dcac2d72b0241cae51c96e0772 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Wed, 6 Feb 2013 00:09:20 +0000 Subject: [PATCH] SDK: - consider scale for meshes in debug view git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10350 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/bullet/debug/BulletCharacterDebugControl.java | 1 + .../com/jme3/bullet/debug/BulletGhostObjectDebugControl.java | 1 + .../com/jme3/bullet/debug/BulletRigidBodyDebugControl.java | 1 + 3 files changed, 3 insertions(+) diff --git a/engine/src/bullet-common/com/jme3/bullet/debug/BulletCharacterDebugControl.java b/engine/src/bullet-common/com/jme3/bullet/debug/BulletCharacterDebugControl.java index de5b03a3f..9a5750fa4 100644 --- a/engine/src/bullet-common/com/jme3/bullet/debug/BulletCharacterDebugControl.java +++ b/engine/src/bullet-common/com/jme3/bullet/debug/BulletCharacterDebugControl.java @@ -84,6 +84,7 @@ public class BulletCharacterDebugControl extends AbstractPhysicsDebugControl { } } applyPhysicsTransform(body.getPhysicsLocation(location), Quaternion.IDENTITY); + geom.setLocalScale(body.getCollisionShape().getScale()); } @Override diff --git a/engine/src/bullet-common/com/jme3/bullet/debug/BulletGhostObjectDebugControl.java b/engine/src/bullet-common/com/jme3/bullet/debug/BulletGhostObjectDebugControl.java index 6227714e1..d10f20f4a 100644 --- a/engine/src/bullet-common/com/jme3/bullet/debug/BulletGhostObjectDebugControl.java +++ b/engine/src/bullet-common/com/jme3/bullet/debug/BulletGhostObjectDebugControl.java @@ -83,6 +83,7 @@ public class BulletGhostObjectDebugControl extends AbstractPhysicsDebugControl{ } } applyPhysicsTransform(body.getPhysicsLocation(location), Quaternion.IDENTITY); + geom.setLocalScale(body.getCollisionShape().getScale()); } @Override 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 b82d1e9fc..3cc231504 100644 --- a/engine/src/bullet-common/com/jme3/bullet/debug/BulletRigidBodyDebugControl.java +++ b/engine/src/bullet-common/com/jme3/bullet/debug/BulletRigidBodyDebugControl.java @@ -87,6 +87,7 @@ public class BulletRigidBodyDebugControl extends AbstractPhysicsDebugControl { } } applyPhysicsTransform(body.getPhysicsLocation(location), body.getPhysicsRotation(rotation)); + geom.setLocalScale(body.getCollisionShape().getScale()); } @Override