Renderer · function
sampleWind
Sample the profile at a time. Writes into out and allocates nothing — this
runs every frame for every system that cares about weather.
Explained in Hello world.
function sampleWind(profile: WindProfile, timeSeconds: number, out: WindState): voidimport { sampleWind } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
profile | WindProfile | |
timeSeconds | number | |
out | WindState |