mirror of
https://github.com/vrld/HC.git
synced 2024-11-18 12:54:23 +00:00
Merge pull request #34 from MGinshe/patch-1
Fix typo in shapes.lua (ipairs vs ipaits)
This commit is contained in:
commit
fb8c0511cf
@ -247,7 +247,7 @@ end
|
|||||||
|
|
||||||
function CircleShape:intersectsRay(x,y, dx,dy)
|
function CircleShape:intersectsRay(x,y, dx,dy)
|
||||||
local tmin = math_huge
|
local tmin = math_huge
|
||||||
for _, t in ipaits(self:intersectionsWithRay(x,y,dx,dy)) do
|
for _, t in ipairs(self:intersectionsWithRay(x,y,dx,dy)) do
|
||||||
tmin = math_min(t, tmin)
|
tmin = math_min(t, tmin)
|
||||||
end
|
end
|
||||||
return tmin ~= math_huge, tmin
|
return tmin ~= math_huge, tmin
|
||||||
|
Loading…
Reference in New Issue
Block a user