Hey all.
At first, sorry if there is any similiar topic but I can’t find answer for my problem anywhere
So, I want to improve performance of my game. I am thinking about adding box collision shapes to my static models in scene, instead of using standard collision shape (just copy of model).
Here is example how I want to do is :
Spatial chair = assetManager.loadModel("Models/chair.mesh.xml");
CollisionShape shape = CollisionShapeFactory.createBoxShape(chair); // instead of createMeshShape(chair)
RigidBodyControl chairControl = new RigidBodyControl(shape, 0f);
chair.addControl(chairControl);
bulletAppState.getPhysicsSpace().add(chairControl);
rootNode.attachChild(chair);
And this is my issue:
As you can see, collision shape doesn’t fit to chair, is any alternative way to make it right? Thanks fort tips