runelite-client: draw convex hull around game objects in devtools overlay

This commit is contained in:
Adam
2017-08-12 22:29:03 -04:00
parent 1a95cdf5a6
commit b3bbc2bd60

View File

@@ -252,6 +252,14 @@ public class DevToolsOverlay extends Overlay
{
OverlayUtil.renderTileOverlay(graphics, gameObject, "ID: " + gameObject.getId(), GREEN);
}
// Draw a polygon around the convex hull
// of the model vertices
Polygon p = gameObject.getConvexHull();
if (p != null)
{
graphics.drawPolygon(p);
}
}
}
}