Page 1 of 1

beginContact(a, b, coll)

Posted: Mon Dec 09, 2013 3:41 am
by pielago
Hi
I have problems with contacts in physics
I have an
object ={}
object.ball={}
object.ground={}

and i am trying to make love.graphics.print (touch,10,10)
beginContact(a, b, coll) <--- what do i need to put here?
in order for the touch to appears the ball its at 100,100 x,y
and the ground its 0, 400

Now i know it's a function but what do i put there i tried the wiki but it didn't work for me? the ball bounce perfect etc..
but once it touches nothing appears :( i know i am missing something but what it is??????

[]

Posted: Mon Dec 09, 2013 12:07 pm
by bekey
-snip-

Re: beginContact(a, b, coll)

Posted: Mon Dec 09, 2013 7:10 pm
by pielago
Okay i do get that its from wiki but what is this means?

Code: Select all

  x,y = coll:getNormal()
also how can i use it for other actions? for example if ball touch the ground and let see another block appears ?
do i need variables? inside the begin and end functions? and use it under love.draw()?

is there more info about physics?any links??