From 132bd286d04f4c08b2afa6f0245f1ef73a2c61f3 Mon Sep 17 00:00:00 2001 From: theFox6 Date: Tue, 10 Apr 2018 19:10:08 +0200 Subject: [PATCH] don't randomize the acceleration randomize the velocity --- weather/rain.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weather/rain.lua b/weather/rain.lua index 94917db..c92b03c 100644 --- a/weather/rain.lua +++ b/weather/rain.lua @@ -10,8 +10,8 @@ minetest.register_globalstep(function(dtime) local minp = addvectors(ppos, {x=-9, y=7, z=-9}) local maxp = addvectors(ppos, {x= 9, y=7, z= 9}) - local vel = {x=0, y= -4, z=0} - local acc = {x=math.random()*weather.wind, y=-9.81, z=math.random()*weather.wind} + local vel = {x=math.random()*weather.wind, y= -4, z=math.random()*weather.wind} + local acc = {x=0, y=-9.81, z=0} minetest.add_particlespawner({amount=25, time=0.5, minpos=minp, maxpos=maxp,