voxolith

AtmosphereTransition

An eased change between atmospheres, from makeAtmosphereTransition.

Defined in: engine/src/atmosphere/weather.ts:100

Methods

changing()

changing(): boolean;

Defined in: engine/src/atmosphere/weather.ts:110

A transition is under way; render continuously while it is.

Returns

boolean


current()

current(): Atmosphere;

Defined in: engine/src/atmosphere/weather.ts:108

Returns

Atmosphere


set()

set(target: Atmosphere, seconds?: number): void;

Defined in: engine/src/atmosphere/weather.ts:105

Move to target over seconds (eased; default 4, 0 is immediate), starting from wherever it is now, so a change mid-transition does not jump.

Parameters

ParameterType
targetAtmosphere
seconds?number

Returns

void


update()

update(dt: number): Atmosphere;

Defined in: engine/src/atmosphere/weather.ts:107

Advance by dt seconds and return the current atmosphere.

Parameters

ParameterType
dtnumber

Returns

Atmosphere

On this page