It looks like you're new here. If you want to get involved, click one of these buttons!
collCheck_Box2B = function( source, target ) local rw = source:getWidth()/2.0 + target:getWidth()/2.0 local rh = source:getHeight()/2.0 + target:getHeight()/2.0 if math.abs(source:getY() - target:getY()) < rh then if math.abs(source:getX() - target:getX() ) < rw then return true end end return false end |
Likes: WauloK