- 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
This commit is contained in:
nor..67 2013-02-06 03:02:26 +00:00
parent 12771f839f
commit 9b487ede59
3 changed files with 3 additions and 12 deletions

View File

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

View File

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

View File

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