MassFromVolume
is a helper script that calculates object's mass from volume of the mesh and the density.
Mass
field can also be set manually.MassFromChildren
to calculate mass of complex objects (objects having more than one child WaterObject
).
A helper script for determining mass of a Rigidbody from the children. It sums the masses of all the children that have WaterObjectMassHelper
scripts attached. This eliminates the need for guessing the mass of the object.
Rigidbody
component.WaterObjectMassHelper
attached or the result will be 0 and ignored.Rigidbody
's mass.