I read the question wrong.. My bad.
Alright, I'm using
spritebatch.Draw(ball, ballvec, Color.White);right now, and the problem is still there.
here's some more code.
int maxX = GraphicsDevice.Viewport.Width; int maxY = GraphicsDevice.Viewport.Height; ballrec = new Rectangle((int)ballvec.X, (int)ballvec.Y, ball.Width, ball.Height); //check for bounce if (ballvec.X > maxX || ballvec.X < 0) ballspeed.X *= -1; if (ballvec.Y > maxY || ballvec.Y < 0) ballspeed.Y *= -1;
As I said before, the ball is 20x20px and i want the recangle to be 20x20 aswell.
changed "ballvec" to "ballrec" in "check for bounce" and the ball did not even bounce, just keept going off screen.