water_2d

A spring surface with buoyancy, swimming, flow, splashes and foam. Centred on the transform; polygon points in local units. Rotation and scale are not used. Runtime waves are not saved.

In scene text

water_2d { size (0, 1, 0)  shape ["a", "b"]  color (1, 0.8, 0.6) }

Add it in the Inspector (Add Component), in scene text as above, or ask your AI. Fields you leave out keep their defaults.

Fields 18

FieldTypeUnit / rangeWhat it does
size(x, y, z)—Box width and depth.
shapelist of text—Optional convex polygon points x,y. Use a flat top for an open surface.
colorcolour (r, g, b)—Surface tint.
depth_colorcolour (r, g, b)—Deep water tint.
opacitynumber0 … 1Water opacity.
distortionnumber0 … 12Refraction wobble in world units.
foamnumber0 … 12Bright surface line thickness.
layernumber-1000 … 1000Draw above submerged objects.
columnsnumber8 … 256Surface spring count.
tensionnumber1 … 400Spring restoring force.
dampingnumber0 … 40Wave decay per second.
spreadnumber0 … 600Neighbour spring coupling.
idlenumber0 … 20Idle wave height.
densitynumber0.05 … 10Fluid density relative to body density.
dragnumber0 … 40Drag toward the flow velocity per second.
flow(x, y, z)—Current velocity in units per second.
waterfalltrue / false—Falling ribbons and mist preset; no buoyancy or foam surface.
enabledtrue / false—Enable physics and drawing.
Arcwright Beta 2 (0.4.0) · generated from the engine source (25e375c86)Something wrong or missing? Tell us
Download Arcwright free