dFloat NewtonConvexCollisionCalculateVolume(const NewtonCollision* convexCollision)
calculate the total volume defined by a convex collision geometry.
- const NewtonCollision *convexCollision - pointer to the collision.
- collision geometry volume. This function will return zero if the body collision geometry is no convex.
- The total volume calculated by the function is only an approximation of the ideal volume. This is not an error, it is a fact resulting from the polygonal representation of convex solids.
- This function can be used to assist the application in calibrating features like fluid density weigh factor when calibrating buoyancy forces for more realistic result.