Table of Contents

Water Object

[WaterObject inspector.]

WaterObject is the main script of DWP2. It handles all the buoyancy and hydrodynamics calculations.

WaterObject gets the data needed for simulation from the Simulation Mesh. This is a static mesh that will be used for simulating water/object interaction and can either be the original mesh or a simplified version of it. WaterObject provides basic tools for mesh triangle decimation, removal of co-located vertices, and convexification - if needed.

[WaterObject with WaterObjectManager's Debug field enabled. ]

Tips

Fields

To get info about individual fields hover the mouse over the field and a tooltip will pop up.

Instantiating at Run-time

Check WaterObjectManager page for more info about instantiating WaterObjects at run-time.