1
0
Fork 0

Fix deprecated vel and acc arguments of particles

objects
Wuzzy 2017-08-18 23:23:07 +02:00
parent e2442a6283
commit 2243ee5477
2 changed files with 4 additions and 4 deletions

View File

@ -57,8 +57,8 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
minetest.add_particle({
pos = pos,
vel = {x=0, y=0, z=0},
acc = {x=0, y=0, z=0},
velocity = {x=0, y=0, z=0},
acceleration = {x=0, y=0, z=0},
expirationtime = .3,
size = 1,
collisiondetection = false,

View File

@ -75,8 +75,8 @@ minetest.register_globalstep(function(dtime)
for i=1, numParticles, 1 do
minetest.add_particle({
pos = {x=playerPos["x"]+math.random(-1,1)*math.random()/2,y=playerPos["y"]+0.1,z=playerPos["z"]+math.random(-1,1)*math.random()/2},
vel = {x=0, y=5, z=0},
acc = {x=0, y=-13, z=0},
velocity = {x=0, y=5, z=0},
acceleration = {x=0, y=-13, z=0},
expirationtime = math.random(),
size = math.random()+0.5,
collisiondetection = true,