bepu / bepuphysics2

Pure C# 3D real time physics simulation library, now with a higher version number.
Apache License 2.0
2.25k stars 261 forks source link

Consider `Compound` vs `BigCompound` heuristic helper #299

Open RossNordby opened 7 months ago

RossNordby commented 7 months ago

It's not immediately clear to many users whether they should use a Compound or a BigCompound. That's understandable, considering there is no fixed threshold of child count. A better heuristic would examine the SAH of the BigCompound tree versus the brute force testing of Compound.

It would require building a tree, but this kind of choice can be made offline.

Possibly worth a demo? Or an expansion of the CompoundDemo?