tidewaterFx.package
This package holds more than this page lists. See all of its files in its world.
README.md
Wake
Put it on anything that moves through water (a boat, a jet ski, a swimmer, a duck) and it
leaves a wake: a V of foam patches laid on the surface behind it that spread and fade over
fade seconds, white bow spray thrown off both sides once it goes faster than spraySpeed,
and rings in the ripple field ahead of it. Everything scales with speed, follows the water's
height, and stops when the body leaves the water (or slows below minSpeed).
It runs on every peer from the body's replicated motion, so nothing extra is sent: each
player sees the same wake behind the same boat. On a Tidewater ocean it also stamps the
ocean's persistent foam (Ocean.stampFoam) when that is available.
Fields: look ("" = the water's own look), width (beam in metres, 0 = measured from the
body), length (hull length, 0 = measured), minSpeed, spraySpeed, fade, bowSpray,
ripples, intensity.
boat.component.add("Wake", { width = 2.2, spraySpeed = 4 })