Just Find theDebugRenderer AddLine can draw line,which is good.
the only problem is how can i draw these line after the sprite?
i try to draw line like
DebugRenderer* debug = scene_->GetComponent<DebugRenderer>();
for (int i = 0; i < 512; ++i)
{
debug->AddLine(Vector3(i, 0, 10), Vector3(i, 100, 10), Color(1.0f, 1.0f, 1.0f));
}
my sprite is at (0,0,0)
the line just block my sprite,and (i,0,-10) not work either.
can i set the drawing order or did i do something wrong?