I am working on a AppGameKit app that will automatically create a compound collision shape for an object using the
V-HACD algorithm.
For those who are not familiar with Convex Hull Decomposition or why you would use it I will explain.
The Bullet Physics Engine used by AppGameKit for 3D physics uses collision shapes to represent the objects that you apply physics too.
The collision shapes are a simplified version of the object. Besides the basic primitive shapes you can have a convex hull shape
represent your object and these can all be dynamic objects. If the object has some concavity like the dumpster pictured below, a
primitive or convex hull will not give you a collision shape which will represent the concavity. The Bullet Physics Engine allows you to create
a compound collision shape to represent the object. To create a compound collision shape manually is difficult so this app will create the
compound shape made of convex hulls automatically based on the geometry of the object. The way the app works is you load the object in the app
and adjust a couple of parameters for the V-HACD algorithm then run the decomposition on the object. Then you can see how the object reacts to the
physics and view the collision shapes so you can decided if this is the 3D physics representation you want. You can then save the compound collision shape
in a Bullet Collision Shape (.bcs) file which can be loaded by AppGameKit using the
LoadObjectShape() command and applied to the object.
12/13/2015
Released a demo you can download here.
http://www.stabinthedarksoftware.net/AGK_Forums/CHD_APP1.03.zip
The coffee is lovely dark and deep,and I have code to write before I sleep.