mirror of
https://github.com/t-affeldt/climate_api.git
synced 2025-07-19 20:44:53 -04:00
Make wind dependent on height, add additional control commands, improve docu
This commit is contained in:
parent
f42b4183e5
commit
d4e00db432
14 changed files with 142 additions and 55 deletions
|
@ -175,7 +175,8 @@ local function parse_config(player, particles)
|
|||
|
||||
-- move particles in wind direction
|
||||
if config.use_wind then
|
||||
local wind = climate_api.environment.get_wind()
|
||||
local pos = vector.multiply(vector.add(config.minpos, config.maxpos), 0.5)
|
||||
local wind = climate_api.environment.get_wind(pos)
|
||||
-- adjust velocity to include wind
|
||||
config.minvel = vector.add(config.minvel, wind)
|
||||
config.maxvel = vector.add(config.maxvel, wind)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue