Game Development Community

Highlight Collision Mesh in World Editor

by Phoenix Online Studios · in Torque Game Engine · 07/27/2005 (10:10 am) · 5 replies

Is it possible to highlight collision meshes in the World Editor? Currently, when they are selected, a wireframe of the bounding box is visible, however we are keeping the bounding box consistant for all collision meshes so the wireframe alone is not good enough to distinguish between them.

Thanks

#1
07/27/2005 (11:38 am)
There are some collision debug utilities in the code. Look in engine/game/collisionTest.cc and .h If you turn everything on, then fly around as an observer camera, you can see the things that are collideable ingame.

Good luck.
#2
07/27/2005 (12:44 pm)
Thanks Josh, I'll check it out.

But just to be clear, I don't want the collisions to be visible during gameplay, I just want them to be visible when using the World Editor. Anyway, I'll have a look at those files and see what I can do. :)
#3
07/27/2005 (1:50 pm)
Using the code in collisionTest as a base to render the collision bounds is probably a good idea.
#4
07/27/2005 (2:16 pm)
Thanks guys, this is just what we were looking for!
#5
08/11/2008 (8:58 am)
CollisionTest.cc and collisionTest.h have since been removed in TGEA since this posting.
Is there currently anyway to draw the collision mesh? ( NOT the bounding box ).