fix(visuals): draw objects that shadows are in view
This commit is contained in:
parent
f5e32a77a2
commit
ccff2e23a2
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue