Dynamic Water Physics 2
Search Results for

    Show / Hide Table of Contents

    Class MassFromChildren

    Calculates mass of a Rigidbody from the children that have MassFromVolume script attached.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    MassFromChildren
    Namespace: NWH.DWP2.WaterObjects
    Assembly: NWH.DWP2.dll
    Syntax
    [RequireComponent(typeof(Rigidbody))]
    public class MassFromChildren : MonoBehaviour

    Methods

    | Edit this page View Source

    Calculate()

    Calculates the total mass from all child MassFromVolume components and applies it to the Rigidbody. Also updates the VariableCenterOfMass component if present.

    Declaration
    public void Calculate()
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics