diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-16 21:31:13 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-16 21:31:13 +0800 |
| commit | 2c24af53829edaf2b6473a438d74adcdac1fdc96 (patch) | |
| tree | d6a586dc30eb6ea849320e7abea2979668085eb7 /utils/bodyLifecycleManager.lua | |
| parent | 254afa93abe7dfec2f4bc1ee16a56436343c05f6 (diff) | |
refactor: clearer initialization code
Diffstat (limited to 'utils/bodyLifecycleManager.lua')
| -rw-r--r-- | utils/bodyLifecycleManager.lua | 4 |
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, |
