Code: Select all
923, 475, 923, 411, 1157, 411, 1157, 475
I've placed a body for it in a position such that it basically falls in the middle of the four sets of coordinates. Then I do:
Code: Select all
collision_test1 = {}
collision_test1.body = love.physics.newBody(world, _body_x, _body_y)
collision_test1.shape = love.physics.newPolygonShape(collision_test1.body, unpack(collCoordsTable))
collision_test1.shape:setData("collision_test1")
Code: Select all
love.graphics.polygon('line', collision_test1.shape:getBoundingBox())