Original Post
So, I've been programming Breakout (I'm still trying!) and I ran into a problem: Using floatrects, how do I create proper collision detection. The ball can hit the blocks from all sides, which means there's four different ways the ball can collide, which means simply using
if (MyFloatRect.Intersects(MyOtherFloatRect))
{
// Collision detection
}
won't work? How should I handle collision? Thank you for reading my post, I'm sure there's a glaring solution I can't figure out
if (MyFloatRect.Intersects(MyOtherFloatRect))
{
// Collision detection
}
won't work? How should I handle collision? Thank you for reading my post, I'm sure there's a glaring solution I can't figure out
