Skip to content

API Interface WaterImpactEvent

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

Interface: WaterImpactEvent

Defined in: src/engine/core/waterEvents.ts:36

What onWaterImpact passes: a wave struck a wall or a hull hard enough to throw spray. Visual feedback only (see the hook): read it during the call; the object is reused.

Properties

kind

kind: WaterImpactKind;

Defined in: src/engine/core/waterEvents.ts:37


normal

readonly normal: Vector3;

Defined in: src/engine/core/waterEvents.ts:41

The wall's or hull side's normal there, pointing out into the water (horizontal, unit length).


position

readonly position: Vector3;

Defined in: src/engine/core/waterEvents.ts:39

Where the wave struck, on the water (world space).


size

size: number;

Defined in: src/engine/core/waterEvents.ts:47

The spray burst's scale: about 1 for a 2 m/s hit by 2 m waves; storms go well above 1.


strength

strength: number;

Defined in: src/engine/core/waterEvents.ts:43

How fast the water hit it (m/s, into the obstacle; over 1).


surface

surface: WaterEventSurface;

Defined in: src/engine/core/waterEvents.ts:49

The water that struck.


waveHeight

waveHeight: number;

Defined in: src/engine/core/waterEvents.ts:45

Crest-to-trough height of the waves there (m).

Clone this wiki locally