I read here http://www.bulletphysics.org/mediawiki-1.5.8/index.php?title=Physics_Tips#There_is_a_small_gap_between_the_ground_and_my_object
that at bullet it can be set like .setCollisionMargin(0.04)
I would like to know if JME bullet already has that defined, if not, if it could be exposed so we could play with it?
All collision shapes have the setMargin method…?
I dont really know, I think it is a per object configuration, and it seems something very interesting, all I know about bullet is thru its JME interface
here is the code they speak about:
controller = GameLogic.getCurrentController()
owner = controller.getOwner()
the way they speak I think the default may already be 0.04 for dynamic and static objects
EDIT: I think I found it, seems already exposed at CollisionShape.setMargin() that calls a native method! I checked some with getMargin() and their defaults varied like: 0.0f, 1.0f, 2.5f, interesting…