Detecting Collision between 2 object in 1 type
BlitzPlus Forums/BlitzPlus Programming/Detecting Collision between 2 object in 1 type
| ||
Is it possible (and if so, please post some example code) to create 1 type of say, 20 objects and detect collisions between these 20 objects. I know I can detect collisions between two seperate types, but how about objects in just 1 type. Thank you for any help.....Duff |
| ||
http://www.blitzbasic.com/Community/posts.php?topic=73849 |
| ||
Okay, SO I looked at the link provided above, but it compares objects of two different types. What I want to do is create a type of, say, 10 objects. I want them to float around the screen randomly and when they collide with each other, bounce off. Of course I need collision detection, but I want to use only 1 type. Anybody have any idea if this is even possible? If so, some exampe code would helpful...... Duff |
| ||
The link posted does check between objects of the same 'type'. |
| ||
|