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?
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()
owner.setCollisionMargin(0.01)
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…