Dynamic Water Physics 2
Search Results for

    Show / Hide Table of Contents

    Mass From Children

    MassFromChildren inspector.

    A helper script for determining mass of a Rigidbody from the children. It sums the masses of all the children that have MassFromVolume scripts attached. This eliminates the need for guessing the mass of the object.

    Usage
    • Attach the script to the parent object. That object has to contain the Rigidbody component.
    • Make sure that at least one child has MassFromVolume attached or the result will be 0 and ignored.
    • Press Calculate Mass From Children. This will calculate and set the Rigidbody's mass.
    • Edit this page
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics