- consider scale for meshes in debug view

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10350 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 66dede03b5
commit 9037d7bbee
  1. 1
      engine/src/bullet-common/com/jme3/bullet/debug/BulletCharacterDebugControl.java
  2. 1
      engine/src/bullet-common/com/jme3/bullet/debug/BulletGhostObjectDebugControl.java
  3. 1
      engine/src/bullet-common/com/jme3/bullet/debug/BulletRigidBodyDebugControl.java

@ -84,6 +84,7 @@ public class BulletCharacterDebugControl extends AbstractPhysicsDebugControl {
}
}
applyPhysicsTransform(body.getPhysicsLocation(location), Quaternion.IDENTITY);
geom.setLocalScale(body.getCollisionShape().getScale());
}
@Override

@ -83,6 +83,7 @@ public class BulletGhostObjectDebugControl extends AbstractPhysicsDebugControl{
}
}
applyPhysicsTransform(body.getPhysicsLocation(location), Quaternion.IDENTITY);
geom.setLocalScale(body.getCollisionShape().getScale());
}
@Override

@ -87,6 +87,7 @@ public class BulletRigidBodyDebugControl extends AbstractPhysicsDebugControl {
}
}
applyPhysicsTransform(body.getPhysicsLocation(location), body.getPhysicsRotation(rotation));
geom.setLocalScale(body.getCollisionShape().getScale());
}
@Override

Loading…
Cancel
Save