Jump to content
  • Advertisement
Sign in to follow this  
Lesan

Breakout Bounce Physics

This topic is 3721 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I found a lot of articles about creating a breakout arkanoid-like game, but in all of them, when the ball hit the paddle, it only inverted the Y-speed and continued as though it would hit a wall. However, in commercial Arkanoid-like games, the angle and the speed of the ball bouncing off the paddle depend on where the ball hit the paddle (on the edge, left, center...). Could you help with that? What should be the ball's angle and speed when it bounces off?

Share this post


Link to post
Share on other sites
Advertisement
If I remember my Atari days correctly, the ball would get a little velocity on the x-axis added to it depending on how quickly you moved the paddle at the time of contact; also it would speed up in general whenever you hit a brick. I doubt they did anything more complex than:



void hit_a_brick() {
velocity *= 1.1;
}

void hit_the_paddle() {
velocity.x += paddle.velocity.x;
}

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!