Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Xna ball and paddle collision help

$
0
0
Hi I have created a very basic start of a pong game that includes using classes for each object, the problem I do not know how to solve is how would I use the rectangle(intersect) collision method to make the ball collide with the paddle, keeping in mind that the paddle and the ball are in different classes. I do not have a problem not using classes it works every time but when I use classes I just can't get the ball and the paddle collide.

I don't mind starting a gain as so far all I have done is ball wall collision and paddle movement.

Viewing all articles
Browse latest Browse all 51036

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>