Skip to content

five-on-it / apps/client/src/renderer/boat-wake / createBoatWakes

Function: createBoatWakes() ​

createBoatWakes(effects, surface): object

Defined in: apps/client/src/renderer/boat-wake.ts:43

The boats' foam of a scene, laid into effects; surface is the water's height at a point (undefined where there is none).

Parameters ​

effects ​

Pick<Effects, "wake" | "spray">

surface ​

(x, z) => number | undefined

Returns ​

update() ​

update(views, dt, now): void

Lays this frame's foam for the boats among views, dt seconds after the last frame, at now (s).

Parameters ​

views ​

readonly CarView[]

dt ​

number

now ​

number

Returns ​

void