A list of functions you can use on contacts can be found at the Contact page.
and on the contacts page there is Contact:isTouching and i wonder how to use it?
Also how can I find out what fixtures collided with each other?
and if I put this
Code: Select all
function beginContact(fixture_a, fixture_b, coll)
collA = fixture_a:getUserData()
collB = fixture_b:getUserData()
end
Code: Select all
function love.update(dt)
if collA == Objects.Player.fixture
--do stuff
end
Thanks in advance