Drawing Debug Lines
by Playware · 06/19/2009 (12:41 am) · 3 comments
1. Uncomment the #define ENABLE_DEBUGDRAW in engine\source\gfx\debugDraw.h
2. In debugDraw.cpp, render() function, in case DebugPrim::Box change to this
comment these lines near the bottom of render() function.
5. From script, you can use these draw functions, for eg like:
Enjoy!
2. In debugDraw.cpp, render() function, in case DebugPrim::Box change to this
GFX->getDrawUtil()->drawWireCube(d * 0.5, (p->a + p->b) * 0.5, p->color);3. These debug primitives have life time field called dieTime. If you don't want it and want to render them all the time
comment these lines near the bottom of render() function.
if(p->dieTime <= curTime && !isFrozen)
{
*walk = p->next;
mPrimChunker.free(p);
}
else4. Compile.5. From script, you can use these draw functions, for eg like:
debugdraw.drawline(heli1.getposition(), heli2.getposition())
Enjoy!

Associate OmegaDog