- consider scale for meshes in debug view

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10350 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2013-02-06 00:09:20 +00:00
parent 66dede03b5
commit 9037d7bbee
3 changed files with 3 additions and 0 deletions

View File

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

View File

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

View File

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