Center of gravity
Posted: Tue Nov 26, 2013 9:31 am
I'd like to calculate the center of gravity.
I already found the calculation of the center of mass:
viewtopic.php?f=4&t=2067&p=12148&hilit= ... ity#p12148
Unfortunately my entity has no mass, nor a volume.
It's just a collection of plane MobileMeshes.
So I thought I could sum the surfaces instead to sum the masses.
But there is no Surface property on the entity.
Does anybody know how I could calculate the surface of an entity?
If there's no way, my workaround would be to sum all triangles before creating the MobileMesh.
Many thanks for all helps!
I already found the calculation of the center of mass:
viewtopic.php?f=4&t=2067&p=12148&hilit= ... ity#p12148
Unfortunately my entity has no mass, nor a volume.
It's just a collection of plane MobileMeshes.
So I thought I could sum the surfaces instead to sum the masses.
But there is no Surface property on the entity.
Does anybody know how I could calculate the surface of an entity?
If there's no way, my workaround would be to sum all triangles before creating the MobileMesh.
Many thanks for all helps!