public virtual void drawTree(DebugDraw argDraw, int nodeId, int spot, int height) { TreeNode node = m_nodes[nodeId]; node.aabb.getVertices(drawVecs); color.set_Renamed(1, (height - spot) * 1f / height, (height - spot) * 1f / height); argDraw.drawPolygon(drawVecs, 4, color); argDraw.ViewportTranform.getWorldToScreen(node.aabb.upperBound, textVec); argDraw.drawString(textVec.x, textVec.y, nodeId + "-" + (spot + 1) + "/" + height, color); if (node.child1 != TreeNode.NULL_NODE) { drawTree(argDraw, node.child1, spot + 1, height); } if (node.child2 != TreeNode.NULL_NODE) { drawTree(argDraw, node.child2, spot + 1, height); } }