It looks like you're new here. If you want to get involved, click one of these buttons!
local body = world:createBody{type = b2.DYNAMIC_BODY} body.type = "ball" local body2 = world:createBody{type = b2.DYNAMIC_BODY} body2.type = "paddle" ... function Scene:onBeginContact(event) local bodyA = event.fixtureA:getBody() local bodyB = event.fixtureB:getBody() if (bodyA.type == "ball" and bodyB.type == "paddle") or (bodyA.type == "paddle" and bodyB.type == "ball") then ... end
Likes: Jacko
Comments
Likes: Jacko