beginContact(a, b, coll)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
pielago
Party member
Posts: 142
Joined: Fri Jun 14, 2013 10:41 am

beginContact(a, b, coll)

Post 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??????
bekey
Party member
Posts: 255
Joined: Tue Sep 03, 2013 6:27 pm

[]

Post by bekey »

-snip-
Last edited by bekey on Fri Jan 24, 2014 2:17 am, edited 1 time in total.
pielago
Party member
Posts: 142
Joined: Fri Jun 14, 2013 10:41 am

Re: beginContact(a, b, coll)

Post 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??
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests