Game Development Community

Collision not working

by Joseph *Nailo* Rick · in Artist Corner · 05/17/2007 (11:34 am) · 7 replies

I've been trying to create collisions on a model using multiple collision meshes. After exporting everything into the fps demo I noticed, on my first try, that the 2nd collision mesh wasn't working. I redrew all of the meshes to see if I that might work, now Col_2, 8, and 9 aren't working.

All of the meshes are simple boxes, with the exception of the ones used on the stairs where I brought the verticies in to create a slightly angled slope.

I also noticed that the arrows collide with the meshes that are working, how does this work with LOScol? I had thought you needed to implement both.

#1
05/17/2007 (7:19 pm)
Someone replied that this didn't make much sense, so here's a bit more of an explination.

I have 9 collision meshes on the model. When I first imported it into TGE the second collsion mesh (colored yellow in img url) did not work. I then redrew the meshes, just to make sure I had them placed right and named properly, this time collision meshes 2(yellow), 8(grey) and 9(unseen but the same shape as 8) did not work.

The second half of my post relates to the collsion meshes that were working (red, green, blue, black, white, lavender). I noticed that when I shot at them they would cause the arrow to explode. What is the purpose of LOS collision meshes, and why did I not have to put them on this model?

reference img:
img299.imageshack.us/img299/8007/collisionexampleno0.jpg
#2
05/17/2007 (10:49 pm)
Ah. You can only have one collision mesh on a model.

I'd love to be proved wrong.

However, you can do like my hillibilly collision system in the mission editor, or in Constructor. (hint use Constructor if you're on tge 1.5.1, if you value your sanity).

edit: I don't know about the LOS col stuff at all. Haven't even heard of it. That was the part of your post that really threw me off.
#3
05/18/2007 (8:19 am)
That should work your more then likely not doing something right in the models
hierarchy make sure as well you have a Collision_ for each mesh and dont over lap them.
#4
05/18/2007 (9:46 am)
I have a detail node for each of the meshes, double checking ot make sure I spelled collision right (have a habit of transposing letters). The over lapping is something I'll have to double check, I didn't realize that this could cause issues.

edit: I made sure that nothing overlapped, double checked everything, and unfortunately none of the collision meshes outside of the first one are responding. In this respect I'm going to have to go along with Lee and believe (until shown otherwise) that there is only support for 1 collision mesh on a model.
#5
05/18/2007 (12:48 pm)
Can you post a screen cap of the models hierarchy in hypergraph
#6
05/18/2007 (1:05 pm)
Sure:

hierarchy
#7
05/19/2007 (8:02 am)
That looks right ...Don't know what your problem is i have exported buildings with like four Collision mesh
before and its works fine....with out looking at the model its self and picking it apart cant give much more advice.