five-on-it / packages/shared/src/weather / WeatherNow
Interface: WeatherNow
Defined in: packages/shared/src/weather.ts:120
The weather at a time, as the simulation, the AI and the picture read it.
Properties
fog
fog:
number
Defined in: packages/shared/src/weather.ts:130
How thick the fog is, 0..1.
intensity
intensity:
number
Defined in: packages/shared/src/weather.ts:124
Its intensity, 0..1.
kind
kind:
"clear"|"overcast"|"rain"|"storm"|"fog"|"snow"
Defined in: packages/shared/src/weather.ts:122
The kind (the one coming in, past the middle of its blend).
overcast
overcast:
number
Defined in: packages/shared/src/weather.ts:132
How overcast the sky is, 0..1 (the light dims by it).
rain
rain:
number
Defined in: packages/shared/src/weather.ts:126
How hard it rains, 0..1 (a storm's too).
snow
snow:
number
Defined in: packages/shared/src/weather.ts:128
How hard it snows, 0..1.
snowCover
snowCover:
number
Defined in: packages/shared/src/weather.ts:140
How much snow lies on the ground, 0..1.
storm
storm:
number
Defined in: packages/shared/src/weather.ts:134
How stormy, 0..1 (lightning, wind).
wetness
wetness:
number
Defined in: packages/shared/src/weather.ts:138
How wet the roads are, 0..1.
wind
wind:
object
Defined in: packages/shared/src/weather.ts:136
The wind (m/s, along x and z).
x
x:
number
z
z:
number