1

Here's where I set the callbacks:

GameWorld = love.physics.newWorld(0, 0, true)
GameWorld:setCallbacks(self.contact)

Here's the contact method:

function thisScene:contact(a, b, coll)
    print(a, b, coll)
end

Output: Fixture: 0x56e2fcb072a0 Contact: 0x56e2fd2d92e0 nil As you can see a is a fixture while b is a contact.

I was expecting a and b to be the two fixtures that collided and coll to be the contact.

Love Version: 11.3 Thanks in advance!

1 Answer 1

1

I figured it out. The first argument was thisScene due to the ":" Corrected code:

function thisScene.contact(a, b, coll)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.