diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-13 14:36:18 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-13 14:36:18 +0800 |
| commit | be01dd710eaaf74562ea4479d171055af10f1e91 (patch) | |
| tree | 935a49a1debae8497d0e04574af61b2a35fa0d61 /objects/Loot.lua | |
| parent | d0c372b1e5d195c0eeeffe05f16930c53adb6818 (diff) | |
fix: loots blocking the way
set loots as sensor to allow contact listen but avoid physical collision
Diffstat (limited to 'objects/Loot.lua')
| -rw-r--r-- | objects/Loot.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/objects/Loot.lua b/objects/Loot.lua index 7cf3959..8a2d162 100644 --- a/objects/Loot.lua +++ b/objects/Loot.lua @@ -12,7 +12,7 @@ function Loot:new(name, x, y) } setmetatable(obj, Loot) - G.BodyLifeCycleManager:create(obj, config.lootSize, "static") + G.BodyLifeCycleManager:create(obj, config.lootSize, "static", true) return obj end |
