physics.contact explanation + need help

I’ve looked at the documentations for physics.contact and i’m trying to figure out how I would be able to tell if a certain object collides with one object, but not another. (i don’t have any code, I just need to know how to do it, and believe me i’ve tried to get it for hours!)

I just made some code:

function setup()
A = physics.body(CIRCLE,50)
A.x = WIDTH/2
A.y = HEIGHT
A.sensor = true

B = physics.body(CIRCLE,50)
B.x = WIDTH/2
B.y = 100
B.type = STATIC

C = physics.body(CIRCLE,50)
C.x = WIDTH/2
C.y = 300
C.type = STATIC
C.sensor = true

createGround()

end

function draw()

background(255,255,255,255)
fill(255,255,255,0)
stroke(0,0,0,255)
strokeWidth(1)
ellipse(A.x,A.y,100)
ellipse(B.x,B.y,100)
ellipse(C.x,C.y,100)

end

function collide(c)
if A.sensor == true then
      print(c.state)
      end
      end

function createGround()
Ledge = physics.body(EDGE,vec2(0,0),vec2(WIDTH,0))
end

See the bottom of this post

http://coolcodea.wordpress.com/2013/03/21/6-more-physics/

Thank you @Ignatz!

raspy voice I’m Batman…

@IAmBatman - you look like a ket, so that earns you a brick to the head!
(ignatz is from krazy kat…)