Dynamic Water Physics 2
Search Results for

    Show / Hide Table of Contents

    Mass From Volume

    MassFromVolume inspector.

    MassFromVolume is a helper script that calculates object's mass from volume of the mesh and the density.

    • Volume of the mesh is calculated automatically.
    • Can be used together with MassFromChildren to calculate mass of complex objects (objects having more than one child WaterObject).

    Usage

    • Attach the script to the object that has the mesh.
    • The Rigidbody on the same object will have its mass set automatically.
    • Adjust the Density field to control the mass calculation (mass = volume × density).
    • Edit this page
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics