So I’ve come across a really mind boggling problem recently, regarding physics collliders.
I’ve recently refactored the way I add box collliders to my CompoundCollisionShapes from the old gruesome code:
Box b = new Box(v.x,v.y,v.z);
Geometry t = new Geometry("",b);
shape.addChildShape(new BoxCollisionShape(pair.value), pair.key.add(com));
According to CollisionShapeFactory.java this should be the exact same thing with less complications and garbage.
However now… some of the colliders may suddently not work all of the time!
Here you can see the side colliders going right through another rigid body:
Yet somehow the center one works fine, despite being created using the exact same code.
And some just allow everything to pass through them, like this tank.
And it’s not consistent either, these may work sometimes other times be completely ignored and I have seen no substantial correlations with anything.
They all show up on normen’s debug state just fine and I haven’t set any collision groups anywhere. I am just stumped.
Is there any other debug option for physics? Should I just jump from something really tall?