Repository navigation
API 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.
kind: WaterImpactKind;Defined in: src/engine/core/waterEvents.ts:37
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).
readonly position: Vector3;Defined in: src/engine/core/waterEvents.ts:39
Where the wave struck, on the water (world space).
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: number;Defined in: src/engine/core/waterEvents.ts:43
How fast the water hit it (m/s, into the obstacle; over 1).
surface: WaterEventSurface;Defined in: src/engine/core/waterEvents.ts:49
The water that struck.
waveHeight: number;Defined in: src/engine/core/waterEvents.ts:45
Crest-to-trough height of the waves there (m).
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference