Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Jurgen
23
Years of Service
User Offline
Joined: 3rd Mar 2003
Location:
Posted: 24th Oct 2003 12:37
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..."
PolyVector
23
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Ghetto Land
Posted: 24th Oct 2003 13:08
Check out NuclearGlory's collision engine... It's fast and accurate...

http://www.nuclearglory.com/developer/db/kdll.html

Login to post a reply

Server time is: 2026-07-26 17:34:18
Your offset time is: 2026-07-26 17:34:18