Skip to main content
2 of 2
deleted 241 characters in body; edited title
House
  • 73.3k
  • 17
  • 185
  • 273

How do I avoid going through objects at high speed?

I am quite the beginner in XNA. I have only recently started using GameComponents. I have a multiplayer game called Better Pong. I move the ball (which is an object) by incrementing the Vector2 (the position) of the ball by the velocity Vector2 and updating the hitbox Rectangle.

However, by having very large speeds (such as (12,12)) the ball might go through the paddle since it just skips through the Paddle's Rectangle "hitbox".

Is there a way to make the ball make smaller movements, so it doesn't go through the paddle (but still move fast)?

Ilan
  • 101
  • 1