Ball direction on the super pong table

Post here to discuss anything to do with The Super Pong Table

Moderators: Chuckt, Garth, bitfogav

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
bitfogav
Moderator
Moderator
Posts: 915
Joined: Sun Mar 28, 2010 9:03 pm
Location: United Kingdom
Contact:

Ball direction on the super pong table

Post by bitfogav » Tue May 17, 2011 6:59 am

Hey Brad,

just have some questions with the direction of the balls on the pong table?

Am i right in saying that some of the ball directions (angles) seem random, in other words if a ball hits a wall it bounces of at the same angle in the opposite direction, but if the ball hits a paddle the ball bounces off at a different angle than when it hit the paddle ?

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Ball direction on the super pong table

Post by brad » Wed May 18, 2011 6:14 am

I was going to make it random as they came out from the center of the screen and I was also going to make the balls deflect at different angles depending on where they hit the bat (but I didn't get around to it)

Instead, I have just set each ball to move at a set speed and at a set angle (because there are five of them, it looks random)

Making it truly random would be much better.

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 4 guests