Configuring Weather and Time¶
Holodeck worlds have weather and time that can be configured, either with Scenarios or programmatically in real time.
See the WeatherController
documentation for
reference.
Weather Options¶
Type¶
Holodeck worlds have three possible types of weather: sunny
cloudy
and rain
.
In a scenario¶
{
"weather": {
"type": "rain"
}
}
Programmatically¶
env = holodeck.make("...")
env.weather.set_weather("rain")
Fog depth¶
Fog depth is set on scale from 0
to 1
.
In a scenario¶
{
"weather": {
"fog_depth": 0.5
}
}
Programmatically¶
env = holodeck.make("...")
env.weather.set_fog_density(0.5)