Game Development Community

Collision

by DizzyDoo · in Torque Game Engine · 06/14/2006 (9:51 am) · 4 replies

I have Milkshape 3D, if i export a simple shape from it to TGE, how do i stop my player walking through the object. I think it's got something to do with Collision Meshes, but i don't really understand how they work. Could someone please explain?

#1
06/14/2006 (10:15 am)
Create a simple mesh around your shape in milkshape with no material, name it collision and if I recall thats it. If you download the milkshape exporter from here they have some good docs on it and some example files too.
#2
06/14/2006 (10:27 am)
Thanks David, i was naming my collision mesh Col-1, i think that's for Maya though. It works.
#3
06/14/2006 (11:43 am)
Col_1 is maya Col-1 is max i believe
#4
06/15/2006 (4:20 am)
Matt,

After making your shape simply make a collison shape of any CONVEX shape and call it collision-1 in the groups, then hide it. keep in mind that collision shapes have polys too.. so keep it simple.. for simple shapes like small boxes often a 2 sided plane will work (and only 4 polys).

With vehicles, make sure the collision mesh extends past the tires.. of you will have some wierd results.

On a side note.. if you are using Milkshape and want some quick LOD (levels of detail).. just use the "direct-x tool" under the tools option.. drag ro poly count, and save.. regroup as name# with # being pixel size for display.. the smaller the # the farther away it will display.. ie. tombstone2, and tombstone100.. with tombstone2 being simply a plane.. no one is the wiser.