Game Development Community

Checkbox to Remove Collision on terrain

by Adam Kirchgessner · in Torque 3D Professional · 02/11/2011 (8:49 am) · 0 replies

Hello all Ive been tinkering with t3d since I purchased the source and was wondering if anyone can help me with creating a terrain with no collision. If possible it would need to be a checkbox similar to the isRenderEnable in the system.
I have found a function that's already in place but (sTerrainConvexList.nukeList();) but I'm not sure how to apply this to only terrains with the box checked.
My first attempt consisted of changing the collision call colShape = PHYSICSMGR->createCollision(); by putting an if statment but I cant find where to place the function NoCollision in the H as this engine is far different from tge 1.5
Thanks for any and all assistance.