Scripting in the water system
You can make boats, floating debris, or other objects match the curvature of the water dynamically.
To align objects correctly with the water surface you can retrieve the normal of the surface at a given point. You can thus ensure objects move or rotate appropriately relative to the surface's real-time changes.
Page | Description |
---|---|
Float objects on a water surface | Add buoyancy to the water simulation. |
Align objects to the water surface using normals | Make objects follow the curvature of the water in real time. |
Add caustics or foam and check waves and ripples | Incorporate caustics or foam and check or retrieve information about the displacement of the water surface. |
Synchronize water surfaces | Synchronize water simulation across all clients in a multiplayer game. |