Game Development Community

Problem with Collusion

by Ocwarts · in Torque 3D Beginner · 10/09/2012 (11:58 pm) · 3 replies

Hi,

I made a huge 3D Building in torque Constructor 1.3 and then i saved it as dif file. I imported it in my Torque3d Game Level (Using Torque 1.2).

The big problem is that my character walks through walls of this 3D building model. There is no collusion happening between model and game character. Can anyone recommend what should i do?

Thanks

#1
10/10/2012 (1:55 am)
Try setting collision to visible mesh
#2
10/20/2012 (12:40 pm)
interesting, i kinda had the opposite issue, had a constructor object i imported and anted poeple to be able to walk through it, and they couldnt, i guess i'll fiddle with the different collisions also, havent got around to that yet(jsut looked at the list, didnt try them yet)
#3
10/20/2012 (1:32 pm)
Interior objects do not have the choice of using visible mesh collision. Having a choice for collision type is for TSStatics only. To use the Interior as a TSStatic involves using the World Editor menu option to export the Interior to Collada, removing the Interior and replacing with the newly exported .dae shape as a TSStatic. Of which you can select and use Visible Mesh collision. For performance considerations it would be better to modify the resultant mesh inside of a modelling application to contain convex collision meshes.

If collision is failing upon the exported .dif shape then you may have bad or truncated brushes/faces/vertexes -- look for the color red in the viewports inside of Constructor. Sometimes a large brush may have to be broken down into smaller ones. The brush type used in construction must also be a Structural brush.

Keep in mind that brush based modelling, the InteriorObject class, is an inferior solution compared to mesh based modelling. It is no longer performant in Torque due to the rendering and material system changes since TGE. I personally would like to see it removed and a much needed TypeMask freed up.