Game Development Community

LOS vs. Collision

by Tyler Crawford · in Artist Corner · 03/07/2006 (11:39 am) · 5 replies

I have gotten collision working on my objects that I export from Maya. Now my player will not pass through the objects that I create and place in the world. Projectiles still pass through, however. I have tried to implement the LOS mesh that the tutorial mentions, but with much less success than the collision mesh. It seems to have trouble if I use more than one polygon combined into a mesh to form the LOS geometry... Does anyone have any advice to offer on creating LOS meshes beyond what the tutorial offers?

-Tyler
smallians@netscape.net

#1
03/07/2006 (1:30 pm)
Make a copy of your col_1 shape and Collision_1 node rename col_1 to LOS_9 and Collision_1 "copy" LOScol_9
add them to the cfg "always export" and eport the dts..
#2
03/07/2006 (2:18 pm)
LOS collision only works when Col_1 becomes LOScol_9 and Collision_1 becomes LOS_9. Could there be a problem if the polygons in the mesh extrude through each other? Is there a quick way to fix this in Maya?
#3
03/07/2006 (2:36 pm)
Quote:
Now my player will not pass through the objects that I create and place in the world. Projectiles still pass through, however.

Your collision mesh is not a closed convex volume.
#4
03/08/2006 (6:39 am)
I suspected as much. Suppose I have two cubes extruding through each other to form a "+" sign. Is there a quick way to fix this in Maya so that I do have a closed convex volume?

-Tyler
gtg045h@mail.gatech.edu
#5
03/08/2006 (7:25 am)
I think you're looking at this from the wrong way.

It's a technique for modelling, not a feature or something like that. So there's no difference here in what program you're using.

Like this:
innercircledev.net/convex.jpg
A object is convex if every line between two points are within the objects boundries.

If it helps you understand, a triangle is always convex. The angles on each of the lines in the triangle is never higher than 180 degrees.

Sorry for the vague description, I hope someone else can explain with better english.
Have fun!