- remove check for class in debug view (was because of wrong shape scales)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10353 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 12771f839f
commit 9b487ede59
  1. 5
      engine/src/bullet-common/com/jme3/bullet/debug/BulletCharacterDebugControl.java
  2. 5
      engine/src/bullet-common/com/jme3/bullet/debug/BulletGhostObjectDebugControl.java
  3. 5
      engine/src/bullet-common/com/jme3/bullet/debug/BulletRigidBodyDebugControl.java

@ -85,10 +85,7 @@ public class BulletCharacterDebugControl extends AbstractPhysicsDebugControl {
node.attachChild(geom);
}
applyPhysicsTransform(body.getPhysicsLocation(location), Quaternion.IDENTITY);
//no scaling for sphere, capsule, cylinder
if (!(body.getCollisionShape() instanceof CylinderCollisionShape) && !(body.getCollisionShape() instanceof CapsuleCollisionShape) || !(body.getCollisionShape() instanceof SphereCollisionShape)) {
geom.setLocalScale(body.getCollisionShape().getScale());
}
geom.setLocalScale(body.getCollisionShape().getScale());
}
@Override

@ -86,10 +86,7 @@ public class BulletGhostObjectDebugControl extends AbstractPhysicsDebugControl{
node.attachChild(geom);
}
applyPhysicsTransform(body.getPhysicsLocation(location), Quaternion.IDENTITY);
//no scaling for sphere, capsule, cylinder
if (!(body.getCollisionShape() instanceof CylinderCollisionShape) && !(body.getCollisionShape() instanceof CapsuleCollisionShape) || !(body.getCollisionShape() instanceof SphereCollisionShape)) {
geom.setLocalScale(body.getCollisionShape().getScale());
}
geom.setLocalScale(body.getCollisionShape().getScale());
}
@Override

@ -86,10 +86,7 @@ public class BulletRigidBodyDebugControl extends AbstractPhysicsDebugControl {
node.attachChild(geom);
}
applyPhysicsTransform(body.getPhysicsLocation(location), body.getPhysicsRotation(rotation));
//no scaling for sphere, capsule, cylinder
if (!(body.getCollisionShape() instanceof CylinderCollisionShape) && !(body.getCollisionShape() instanceof CapsuleCollisionShape) || !(body.getCollisionShape() instanceof SphereCollisionShape)) {
geom.setLocalScale(body.getCollisionShape().getScale());
}
geom.setLocalScale(body.getCollisionShape().getScale());
}
@Override

Loading…
Cancel
Save