From 26a10020ace5b6a933cf63004b4d0db1c0728846 Mon Sep 17 00:00:00 2001 From: Onek8 Date: Mon, 2 Jun 2025 04:12:58 +0000 Subject: [PATCH] moisesjpelaez - Physics Improvements --- leenkx/Sources/iron/object/Object.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/leenkx/Sources/iron/object/Object.hx b/leenkx/Sources/iron/object/Object.hx index 8a68e82..4c4987b 100644 --- a/leenkx/Sources/iron/object/Object.hx +++ b/leenkx/Sources/iron/object/Object.hx @@ -172,6 +172,10 @@ class Object { for (f in t._init) App.removeInit(f); t._init = null; } + if (t._fixedUpdate != null) { + for (f in t._fixedUpdate) App.removeFixedUpdate(f); + t._fixedUpdate = null; + } if (t._update != null) { for (f in t._update) App.removeUpdate(f); t._update = null;