diff options
author | heav <hheav3@gmail.com> | 2022-12-27 20:52:30 +0000 |
---|---|---|
committer | heav <hheav3@gmail.com> | 2022-12-27 20:52:30 +0000 |
commit | ea94fd5b12421717c383512ae7be2d8c339eff60 (patch) | |
tree | 30457d549f65dd4aaa63b633841c76b68585bae3 | |
parent | 658e83a16c60a28855b8d6690ac1ae6f128ba51f (diff) |
made heav_object's radius radial.
-rw-r--r-- | objects/heav_object.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/objects/heav_object.lua b/objects/heav_object.lua index 946b87a..218cb7b 100644 --- a/objects/heav_object.lua +++ b/objects/heav_object.lua @@ -14,7 +14,7 @@ function heav_object:tick() local x, y = self.data.pos[1], self.data.pos[2] self.time = self.time+1 local the = math.sin(self.time/5) / 30 - for obj in obj.in_box(x-50, y-50, x+50, y+50) do + for obj in obj.in_circle(x, y, 50) do if obj ~= self then obj.data.avel = obj.data.avel + the end |