fix(visuals): draw objects that shadows are in view

This commit is contained in:
Kazhnuz 2024-11-08 09:52:07 +01:00
parent f5e32a77a2
commit ccff2e23a2

View file

@ -45,6 +45,9 @@ function Visual:_getShapeData()
if (self.world.type == "3D") then if (self.world.type == "3D") then
position.y = (position.y - position.z) - self.dimensions.d position.y = (position.y - position.z) - self.dimensions.d
dimensions.h = self.dimensions.h + 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 end
return position, dimensions return position, dimensions
end end