Game Development Community

2D lines for AI debugging

by Dasca · in Game Design and Creative Issues · 01/08/2006 (5:48 am) · 1 replies

Hi all,

I've just started playing with Torque engine and I trying to make a Tank Game... something like BF2 but with tank only....
Now the question.. It's possible to draw a line, a circle, an arc on top of the 3d view? I mean... I need to draw them because I would like to add AI routine and I would like to see how this routine work, in example:

a circle for the radar range.
a line from the AI controlled tank to the near tank.
an arc for understand where the tank is scanning
etc etc..

Sorry for my bad english, I hope you understand my question


Dasca

#1
02/13/2006 (4:55 am)
You aren't limited to the Torque commands in the engine if you own a licence. You can write your own C++ code to do what you like. I assume that this means you have all the power of DX available to you, and drawing 2D lines is a pretty basic function for any graphics programming language.