Feasible collision detection requires both accurate collision surfaces and a low total surface count for computational efficiency. Therefore, model importing should also generate a reasonable bounding volume with which collisions can be checked. Write an algo such that upon init of a model: deconstructs and arbitrary, potentially concave volume, given by its vertex and index data, into a lowest possible number of computationally efficient convex bounding volumes.
Feasible collision detection requires both accurate collision surfaces and a low total surface count for computational efficiency. Therefore, model importing should also generate a reasonable bounding volume with which collisions can be checked. Write an algo such that upon init of a model: deconstructs and arbitrary, potentially concave volume, given by its vertex and index data, into a lowest possible number of computationally efficient convex bounding volumes.