Game Development Community

TorqueX polysoup collision detection

by Mark Lacay · in Artist Corner · 01/13/2009 (12:26 pm) · 0 replies

Hello all,

forgive me if i am missing something blatantly obvious to everyone but me, but i just can't seem to get collision detection working for a Static Mesh. So far, I've tried simply adding a T3DXNARenderComponent and a T3DRigidComponent to a torque object but that didnt work, as the mesh isnt collidable.

And now I am trying to add these two components along with a T3DStaticGeometryComponent but it complains of the Assertion Failure:

CollisionMeshShape: Must have at least one triangle

Now I assume this means I am doing something wrong and have nott linked up all the object correctly. If there is someone out there who knows how to get this going through code it would be very much appreciated!!!

Until then, i will slave away trying different combinations, cause reading through The Complete Guide to Torque X shows no examples of loading non-DTS static meshes!!! :(