fix(hitbox3D): adapt dz to oz checking collision
This commit is contained in:
parent
0b77dc8857
commit
ffd58ea1cb
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ end
|
||||||
function Hitbox3D:checkCollisionAtPoint(dx, dy, dz, filter)
|
function Hitbox3D:checkCollisionAtPoint(dx, dy, dz, filter)
|
||||||
self:updatePosition()
|
self:updatePosition()
|
||||||
|
|
||||||
local dx, dy = self.ox + dx, self.oy + dy, self.oz + dz
|
local dx, dy, dz = self.ox + dx, self.oy + dy, self.oz + dz
|
||||||
local x, y, z, cols, colNumber = self.world:checkCollisionAtPoint(self, dx, dy, dz, filter)
|
local x, y, z, cols, colNumber = self.world:checkCollisionAtPoint(self, dx, dy, dz, filter)
|
||||||
local newx, newy, newz = self:getNewOwnerPosition(x, y, z)
|
local newx, newy, newz = self:getNewOwnerPosition(x, y, z)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue