Difference between revisions of "NewtonConvexCollisionCalculateVolume"
m (1 revision imported) |
|
(No difference)
|
Latest revision as of 08:02, 10 June 2019
NewtonConvexCollisionCalculateVolume
dFloat NewtonConvexCollisionCalculateVolume(const NewtonCollision* convexCollision)
Usage
calculate the total volume defined by a convex collision geometry.
Parameters
- const NewtonCollision *convexCollision - pointer to the collision.
Return
- collision geometry volume. This function will return zero if the body collision geometry is no convex.
Remarks
- 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.