- 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:
parent
12771f839f
commit
9b487ede59
@ -85,11 +85,8 @@ 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
|
|
||||||
if (!(body.getCollisionShape() instanceof CylinderCollisionShape) && !(body.getCollisionShape() instanceof CapsuleCollisionShape) || !(body.getCollisionShape() instanceof SphereCollisionShape)) {
|
|
||||||
geom.setLocalScale(body.getCollisionShape().getScale());
|
geom.setLocalScale(body.getCollisionShape().getScale());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void controlRender(RenderManager rm, ViewPort vp) {
|
protected void controlRender(RenderManager rm, ViewPort vp) {
|
||||||
|
@ -86,11 +86,8 @@ 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
|
|
||||||
if (!(body.getCollisionShape() instanceof CylinderCollisionShape) && !(body.getCollisionShape() instanceof CapsuleCollisionShape) || !(body.getCollisionShape() instanceof SphereCollisionShape)) {
|
|
||||||
geom.setLocalScale(body.getCollisionShape().getScale());
|
geom.setLocalScale(body.getCollisionShape().getScale());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void controlRender(RenderManager rm, ViewPort vp) {
|
protected void controlRender(RenderManager rm, ViewPort vp) {
|
||||||
|
@ -86,11 +86,8 @@ 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
|
|
||||||
if (!(body.getCollisionShape() instanceof CylinderCollisionShape) && !(body.getCollisionShape() instanceof CapsuleCollisionShape) || !(body.getCollisionShape() instanceof SphereCollisionShape)) {
|
|
||||||
geom.setLocalScale(body.getCollisionShape().getScale());
|
geom.setLocalScale(body.getCollisionShape().getScale());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void controlRender(RenderManager rm, ViewPort vp) {
|
protected void controlRender(RenderManager rm, ViewPort vp) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user