kmammou / v-hacd

Automatically exported from code.google.com/p/v-hacd
BSD 3-Clause "New" or "Revised" License
1.41k stars 266 forks source link

Compute inertia tensor? #64

Open yomboprime opened 5 years ago

yomboprime commented 5 years ago

It would be nice if the lib could compute the inertia tensor of each hull at the same time it computes volume.

Bullet's convex hull inertia tensor computation seems to treat all the mass as if condensed in the vertices, so the inertia is innacurate, mostly on elongated objects.

The inertia tensors's three coordinates of each hull could be output perhaps in a text file.

Thank you for reading this feature enhancement petition.

btickell commented 5 years ago

Have you had any luck on this front? I am importing some meshes into a simulated physics engine and I need some reasonable inertia tensor for this purpose.