nWater

a package for the Nonay Engine, by Coke
Water that actually behaves like water.

Every drop is simulated. It pours, pools, finds its level, leaks out of holes, sprays under pressure, splashes when you run through it, and floats your ships.

Requires Nonay Engine 0.1.3 or newer

Fills anything

Build a tank out of props and it fills, levels off and stays put.

Leaks

Punch a hole in your container and it drains at the rate the hole allows.

Pressure

Press down with a long prop and it squirts out of both sides.

Splashes

Run through it and drops break off the mass. Jump out and it comes with you.

Floats ships

A prop lighter than the water rides the surface. Heavier ones sink.

Scriptable

Ten blocks for spouts, splashes, physics and gates on being submerged.

Install

  1. Download nWater.zip.
  2. Open your project in the Nonay Engine.
  3. Go to Project Settings → Packages → Install Package (.zip) and pick the file.
  4. Right-click the scene viewport and open the nWater submenu.

It installs into your project's Packages/ folder, so it travels with the project and ships inside exported games automatically.

What you get in the right-click menu

EntryWhat it does
Add SpoutA nozzle that spits water upward at a rate you set.
Add PoolA region that fills with water when the game starts.
Add Floating HullA light unanchored prop that floats. The start of a boat.

Blocks

BlockWhat it does
Spout On / Off / ToggleTurn a spout on or off from a script.
Set Spout RateDrops per second.
Set Spout PowerHow hard it fires and how much it fans out.
Pour Water HereDump a burst of water at a prop, the character or a point.
Splash WaterBlast water away from a point. Explosions, impacts, oars.
Clear All WaterEmpty the scene.
Set Water PhysicsDensity, viscosity, gravity scale and the drop cap.
Water Amount?Gate on how much water exists.
In Water?Gate on whether the character or a prop is submerged.

Making a ship

Buoyancy applies to any unanchored prop with collision on. Set its Weight below the water's density (default 1) and it floats: 0.2 bobs like a raft, 0.8 wallows half under, 4 sinks. Give a hull a deck, park the character on it, and open a spout.