Game Development Community

How to draw the borders of a trigger

by Ingo Seidel · in Torque Game Engine Advanced · 06/03/2009 (9:01 am) · 2 replies

Hi,

I want to be able to draw the borders of a trigger, how is this possible?

thanks

#1
06/03/2009 (4:45 pm)
well, you could study the replicator resource code here and 'steal' the function that the blocker uses to render the placement area in the editor.

its what i'd look at anyway :)
#2
06/04/2009 (1:26 am)
The problem is that the Trigger's parent classes do not define a renderObject method and I was unsure where I should put the rendering code. I tried to derive the Trigger object from ShapeBase instead of GameBase and overwrote the renderObject method that is defined in ShapeBase. However, this did not work out and nothing got rendered.