mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-08 08:23:59 +01:00
Merge branch 'master' into 'master'
Prevent the symptoms of Issue #33 See merge request VanessaE/pipeworks!31
This commit is contained in:
commit
8322f256c5
@ -340,6 +340,8 @@ local move_entities_globalstep_part2 = function(dtime)
|
||||
entity._velocity = master_entity:get_velocity()
|
||||
entity._acceleration = master_entity:get_acceleration()
|
||||
else
|
||||
entity._velocity = entity._velocity or vector.new(0,0,0)
|
||||
entity._acceleration = entity._acceleration or vector.new(0,0,0)
|
||||
entity._pos = vector.add(vector.add(
|
||||
entity._pos,
|
||||
vector.multiply(entity._velocity, dtime)),
|
||||
|
Loading…
Reference in New Issue
Block a user