Re: Object Collision
Posted: Thu Nov 17, 2022 1:16 pm
fridays18 wrote: ↑Thu Nov 17, 2022 1:14 pm
ooo okay so fore examplesomething like this?Code: Select all
for i,v in ipairs(listOfBullets) do for i2, v2 in ipairs(listOfEnemies) do local isCollision = basicCollisionFunction (v.x,v.y,v.w,v.h, v2.x,v2.y,v2.w,v2.h) end end
Yes, but also w and h
https://love2d.org/wiki/BoundingBox.lua