- 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. 3
      engine/src/bullet-common/com/jme3/bullet/debug/BulletCharacterDebugControl.java
  2. 3
      engine/src/bullet-common/com/jme3/bullet/debug/BulletGhostObjectDebugControl.java
  3. 3
      engine/src/bullet-common/com/jme3/bullet/debug/BulletRigidBodyDebugControl.java

@ -85,11 +85,8 @@ 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());
}
}
@Override
protected void controlRender(RenderManager rm, ViewPort vp) {

@ -86,11 +86,8 @@ 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());
}
}
@Override
protected void controlRender(RenderManager rm, ViewPort vp) {

@ -86,11 +86,8 @@ 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());
}
}
@Override
protected void controlRender(RenderManager rm, ViewPort vp) {

Loading…
Cancel
Save