@Lee
Quote: "1. You mention giving 'bvhTriangleMeshShape' to a dynamic body which quite rightly causes a massive slowdown. Are you recommending that we use btConvexHullShape for any dynamic entities that are set to polygon collision?"
Using the 'bvhTriangleMeshShape' in Bullet for dynamic rigid bodies is forbidden, it is for static only.
This is the fastest shape for static bodies. Bullet will allow you to make this mistake so it is up to you not too.
All the other collision shapes can be either static or dynamic but btConvexHullShape is the fastest for dynamic.
Quote: "2. "Primitive shapes slower than a convex hull collision shape" - Are you recommending that I generate meshes for box, sphere and cylinder shapes, using this data to create a btConvexHullShape object instead of using objects such as btBoxShape? The purpose being to speed up performance?"
If you have a object that is a box(wooden crate) just create a btConvexHullShape from the mesh data of the object.
It will still be box shaped(convex) but handled as a convex hull by the solver which is faster than btBoxShape.
@LEE @AmenMoses @Teabone
Let me try to clear up the confusion. In the video below I have 2 fences that are using the 'bvhTriangleMeshShape'
what you call polygon collision if you could see the collision shape it would just look like the wireframe of the object.
The terrain is also using the 'bvhTriangleMeshShape' . With my current implementation of a Kinematic character controller
I am not getting the slow down as you can see in the video. In the PP2 version of GG the slow down is occurring when ever the character controller is in contact with 2 static objects regardless of snap mode or angle. For example if the 2 pieces of fence are in a strait line and the character controller is in contact with both of them. Try it and you will see it happens.
What I can tell you is that the problem is in the character controller. I can not tell you how to fix the bug in the character controller as it is a incorrect implementation as it does not inherit the class but uses it directly and has part of the Bullet core code deleted.
Warning: This video shows my version of GG
The coffee is lovely dark and deep,and I have code to write before I sleep.