SDK:
- consider scale for meshes in debug view git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10350 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
66dede03b5
commit
9037d7bbee
@ -84,6 +84,7 @@ public class BulletCharacterDebugControl extends AbstractPhysicsDebugControl {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
applyPhysicsTransform(body.getPhysicsLocation(location), Quaternion.IDENTITY);
|
applyPhysicsTransform(body.getPhysicsLocation(location), Quaternion.IDENTITY);
|
||||||
|
geom.setLocalScale(body.getCollisionShape().getScale());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -83,6 +83,7 @@ public class BulletGhostObjectDebugControl extends AbstractPhysicsDebugControl{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
applyPhysicsTransform(body.getPhysicsLocation(location), Quaternion.IDENTITY);
|
applyPhysicsTransform(body.getPhysicsLocation(location), Quaternion.IDENTITY);
|
||||||
|
geom.setLocalScale(body.getCollisionShape().getScale());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -87,6 +87,7 @@ public class BulletRigidBodyDebugControl extends AbstractPhysicsDebugControl {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
applyPhysicsTransform(body.getPhysicsLocation(location), body.getPhysicsRotation(rotation));
|
applyPhysicsTransform(body.getPhysicsLocation(location), body.getPhysicsRotation(rotation));
|
||||||
|
geom.setLocalScale(body.getCollisionShape().getScale());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user