don't randomize the acceleration

randomize the velocity
This commit is contained in:
theFox6 2018-04-10 19:10:08 +02:00 committed by GitHub
parent b4e5415a56
commit 132bd286d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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,