summaryrefslogtreecommitdiff
path: root/utils/bodyLifecycleManager.lua
diff options
context:
space:
mode:
Diffstat (limited to 'utils/bodyLifecycleManager.lua')
-rw-r--r--utils/bodyLifecycleManager.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/bodyLifecycleManager.lua b/utils/bodyLifecycleManager.lua
index 219537c..6afbcb1 100644
--- a/utils/bodyLifecycleManager.lua
+++ b/utils/bodyLifecycleManager.lua
@@ -10,6 +10,10 @@ function bodyLifeCycleManager.new()
return self
end
+function bodyLifeCycleManager.init(G)
+ G.BodyLifeCycleManager = bodyLifeCycleManager.new()
+end
+
function bodyLifeCycleManager:create(object, shape, bodyType, sensor)
table.insert(
self.toCreate,