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): void
import { sampleWind } from '@driftengine/core';

Parameters

ParameterTypeDescription
profileWindProfile
timeSecondsnumber
outWindState