Browse Source

- 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
nor..67 12 năm trước cách đây
mục cha
commit
9b487ede59

+ 1 - 4
engine/src/bullet-common/com/jme3/bullet/debug/BulletCharacterDebugControl.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

+ 1 - 4
engine/src/bullet-common/com/jme3/bullet/debug/BulletGhostObjectDebugControl.java

@@ -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

+ 1 - 4
engine/src/bullet-common/com/jme3/bullet/debug/BulletRigidBodyDebugControl.java

@@ -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