Game Development Community

Multiple objects colliding with the same object?

by Thomas Pereira · in Torque Game Builder · 03/02/2007 (8:00 pm) · 3 replies

I'm having a little issue with ~10 objects colliding with a single object. The collisions get very lazy, proper displacement takes about 1 or so seconds if any displacement occurs at all. In addition, circles have trouble colliding with polygons, so on and so forth. I'm wondering if anyone has ran into problems like these. A very accurate collision system which can detect multiple collisions on a single object is crucial for what I'm doing - I have very little experience with C++ so I would rather not mess with the source. If no one has a solution without messing with the source, I guess I will have no choice, but its worth a shot. I kind of wanted to switch to a verlet integration for the physics anyway, I might end up doing that if I mess up with the source for collisions, so we'll see. Thanks for the help.

-Tom Pereira

#1
03/02/2007 (10:19 pm)
The physics system is getting a big update next release, so that'll probably help. For now, though, try not using Circle collisions at all - just turn them into n-gons with the custom regular polygon script function and see if that helps. Also, make sure you're using send collision on the moving objects so that they use swept-polygon collisions.

Maybe one of those will help ;)
#2
03/03/2007 (4:22 pm)
I've tried all of those combinations. I suppose my only choice is to wait for the physics buff than modify the source from there. Thanks for the help.
#3
03/03/2007 (4:56 pm)
@Thomas: it's weird how collisions works... maybe if you talk more about how those 10 objects collide with that single one you will get better help ;) are they colliding all at once? in a row? etc...

good luck with that