Hi there, I have up to 200 objects so I have to have a good collision system! I guess this one is very bad, where the array objects at place 5 holds the ammount of objects and 150 the player object...
for a=1 to objects(5)
if object exist(a)
if object hit(150,a)
play sound 1
position object 150,-100,-100,-100
endif
endif
next a
I also thought up of using pythagoras to calculate the distance, but then it calculates the distance between the center of the objects, and if I have a very big sphere, it means that I can hit the sphere but the collision system says that I missed it :S
Does anyone have an idea of how to solve this? Or anotherway to get FAST collisions?
thanks in advance, Jurgen
"Only when all the seas are poisened, only when all the trees have been cut only when all the animals are killed, people will understand that money can't be eaten..."