I’m currently at University in Multimedia and I’m learning Processing (which is pretty cool).
For my lastest project, I need to do a game where there is some collisions. The problem is that I know how to do some hits test object (collisions) between some elements in my own class, but the collisions need to be between two different objects.
Actually, I have an ArrayList where there are Enemies (they spawn according to some rules I made) and I have an other ArrayList where there are Bullets (need to kill the enemy). So I don’t really know how to detect a collision between two different ArrayList elements.
By the way, my game is in 3D. I don’t think it will make a difference because i just need to put an other value to the dist(), but I wanted to say it anyway hehe!.
Like… There are some enemies flying (move in many directions) and when the user MousePressed(), there is a bullet that move in the Z axes (the user need to aim and kill the enemy).