Class MassFromChildren
Calculates mass of a Rigidbody from the children that have MassFromVolume script attached.
Namespace: NWH.DWP2.WaterObjects
Assembly: NWH.DWP2.dll
Syntax
[RequireComponent(typeof(Rigidbody))]
public class MassFromChildren : MonoBehaviour
Methods
| Edit this page View SourceCalculate()
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()