Game Development Community

Showing collision polygons in level editor

by Olli Sikstus · in Torque Game Builder · 10/19/2006 (11:12 am) · 5 replies

Is it possible to show collision polygons in level editor? I tried "sceneWindow2D.getSceneGraph().setDebugOn(5);" in console but getSceneGraph returned ""

#1
10/20/2006 (6:14 pm)
You can do this very easily in the Level Builder :)

1) Click the "Project" Tab

2) Click the "t2dScenegraph" object in the Tree
tdn.garagegames.com/wiki/images/f/fc/SelectSceneGraphDebugRendering.JPG
3) Click the "Edit" Tab

4) Click the "Debug Rendering" rollout

tdn.garagegames.com/wiki/images/c/cc/SelectDebugRendering.JPG
#2
10/22/2006 (9:00 pm)
Cool. Thanks.
#3
08/11/2007 (5:20 pm)
Does this work in 1.5.1? I do not think so? Is there a way or is this broken?
#4
08/11/2007 (6:28 pm)
I've been doing it in 1.5.1
#5
08/11/2007 (11:48 pm)
Christian, what OS are you running?

I am running Vista and I have the same problem, it doesn't work in the Editor nor does it work when running my game. But, if you type the setdebugon command in the console while running the game, it works!