Game Development Community

Multiple collision meshes

by Ronald J Nelson · in Torque Game Engine · 10/28/2007 (8:53 pm) · 3 replies

I am pretty much just getting into some of the modelling aspects in an attempt to improve collision performance in my game. I have added the collision improvment stuff Tom Spilman and his team did and it helps alot. However, I still get a problem with vehicles passing through each other now and then.

So I need to ask, would it help if I have multiple layers of collision meshes?

#1
11/01/2007 (3:22 am)
That is an issue with the code he posted...I had it as well.

I can't say I know, but I very seriously doubt it will help. I suppose you could have multiple meshes in the same place. That would be interesting.

Why don't you try it out on a test vehicle and let us know how it goes? :)
#2
11/09/2007 (1:59 pm)
Personally I think multiple collision meshes will lead to a performance hit. Depending on how many other vehicles and objects you have in your environment that you can collide with, this can either be miniscule or significant because each face of the collision mesh is monitored constantly to watch for collision.

Since you are trying to improve performance, having multiple collision meshes seems counter-productive.

Without seeing the model you have or the collision mesh it is difficult for me to make a judgement on this.

If you haven't already, I would suggest testing it with the most simple collision mesh possible: a box. This way, there is less of a possibility that the meshes can pass through each other because the collision is only six sides.

If it still does it, you could try the multiple mesh method as long as you remember to keep it simple. Each mesh you add multiplies the calculations needed for collision.
#3
11/09/2007 (5:56 pm)
Yeah I decided already this was a bad idea.