aboutsummaryrefslogtreecommitdiff
path: root/src/phys.lua
diff options
context:
space:
mode:
authorne_mene <[email protected]>2026-03-12 20:03:59 +0100
committerne_mene <[email protected]>2026-03-12 20:03:59 +0100
commit80564184d492227d4a403358e0f3ffdef0ff008e (patch)
tree41e3e2b8a411ba5483f6f3eb8f6f9ec61cb02fc3 /src/phys.lua
parentb56acf6882d542d4466e6eec6228e280be98f53d (diff)
touch reset
Diffstat (limited to 'src/phys.lua')
-rw-r--r--src/phys.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/phys.lua b/src/phys.lua
index 10691a9..126b5a8 100644
--- a/src/phys.lua
+++ b/src/phys.lua
@@ -127,6 +127,9 @@ function phys.Box:update(velx, vely, dt)
local small_side = math.min(self.width, self.height)
local steps = math.ceil(vec_len(velx * dt, vely * dt) / small_side)
+ self.touchx = 0
+ self.touchy = 0
+
-- this block is fat. much like a certain croatian...
-- not anymore :D
-- shut up