set_water_body_gerstner_waves_spectrum
Applies a Gerstner wave set to a Lake or Ocean water body, building octaves from Phillips, PiersonMoskowitz, or JONSWAP spectra.
Instructions
Build a Gerstner wave set using the oceanology spectrum generator (octaves of a known wave spectrum) and apply it to a wave-supporting water body (Lake/Ocean).
Returns: { water_body_label: string, wave_supported: bool, has_waves: bool, num_waves: int, max_wave_height: number, spectrum_type: string, octave_count: int, applied: bool, note: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| octaves | No | Optional array of octaves, each { num_waves?, amplitude_scale?, main_direction?, spread_angle?, uniform_spread? }; one default octave is used if omitted | |
| spectrum_type | No | Wave spectrum: Phillips (default), PiersonMoskowitz, or JONSWAP | |
| water_body_label | Yes | Label of the AWaterBody actor (Lake/Ocean) |