Supplement ball bouncing

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
User avatar
Nexion
Prole
Posts: 46
Joined: Fri Sep 05, 2008 1:40 pm

Supplement ball bouncing

Post by Nexion »

I am trying to recreate Pong, but whenever my ball hits the ceiling or floor, it bounces off the normal of the surface instead of the supplement which is what I would like it to do. It works fine on the paddle when its moving, flows in the correct direction that the paddle is moving and whatnot as well, but it has a problem with the ceiling and floor.
User avatar
Kuromeku
Party member
Posts: 166
Joined: Sun Jul 20, 2008 5:45 pm

Re: Supplement ball bouncing

Post by Kuromeku »

Hey there sir, could you draw me up a visual example in MSPaint or give me the .love?

And it's me, Conna, btw.
User avatar
Kuromeku
Party member
Posts: 166
Joined: Sun Jul 20, 2008 5:45 pm

Re: Supplement ball bouncing

Post by Kuromeku »

Probably a shit way of doing it but meh:

http://kudomiku.com/dump/lua/pong.love
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests