When Two Objects Collide

BlitzMax Forums/BlitzMax Beginners Area/When Two Objects Collide

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

If I were to make two instances of the same type (circles), and have them bouncing off the corners of the screen they simply overlap each other if they cross paths.

Now if you were to create code for them to collide into each other. How do you define where they go after the collision? How do you define that they have reached a collision?

Since Ball:TBall is the same as another Ball:TBall - How do you compare two Ball:TBalls?