瀏覽代碼

SDK:
- consider scale for meshes in debug view

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10350 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

nor..67 12 年之前
父節點
當前提交
9037d7bbee

+ 1 - 0
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

+ 1 - 0
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

+ 1 - 0
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