forked from mtcontrib/pipeworks
Compare commits
2 Commits
4dd30df37a
...
2021-01-30
Author | SHA1 | Date | |
---|---|---|---|
8322f256c5 | |||
ba7eb19317 |
@ -340,6 +340,8 @@ local move_entities_globalstep_part2 = function(dtime)
|
|||||||
entity._velocity = master_entity:get_velocity()
|
entity._velocity = master_entity:get_velocity()
|
||||||
entity._acceleration = master_entity:get_acceleration()
|
entity._acceleration = master_entity:get_acceleration()
|
||||||
else
|
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.add(vector.add(
|
||||||
entity._pos,
|
entity._pos,
|
||||||
vector.multiply(entity._velocity, dtime)),
|
vector.multiply(entity._velocity, dtime)),
|
||||||
|
Reference in New Issue
Block a user