diff --git a/framework/scenes/world/actors/visuals/init.lua b/framework/scenes/world/actors/visuals/init.lua index 23ef7dd..261960a 100644 --- a/framework/scenes/world/actors/visuals/init.lua +++ b/framework/scenes/world/actors/visuals/init.lua @@ -45,6 +45,9 @@ function Visual:_getShapeData() if (self.world.type == "3D") then position.y = (position.y - position.z) - self.dimensions.d dimensions.h = self.dimensions.h + self.dimensions.d + if (self.zGround ~= nil) then + dimensions.h = dimensions.h + (position.z - self.zGround) + end end return position, dimensions end