static void DrawVert(IsoWorld iso_world, Vector3 pos, Vector3 size) { if (iso_world) { Handles.DrawLine( iso_world.IsoToScreen(pos), iso_world.IsoToScreen(pos + IsoUtils.Vec3FromZ(size.z))); } }
static void DrawIsoCubeVert(IsoWorld iso_world, Vector3 pos, Vector3 size) { if (iso_world) { var point0 = iso_world.IsoToScreen(pos); var point1 = iso_world.IsoToScreen(pos + IsoUtils.Vec3FromZ(size.z)); Handles.DrawLine(point0, point1); } }
public static void DrawCube(IsoWorld iso_world, Vector3 center, Vector3 size, Color color, Vector3 rotate) { if (iso_world) { Handles.color = color; var pos = center - size * 0.5f; DrawTop(iso_world, pos, size, rotate); DrawTop(iso_world, pos + IsoUtils.Vec3FromZ(size.z), size, rotate); DrawVert(iso_world, pos, size); DrawVert(iso_world, pos + IsoUtils.Vec3FromX(size.x), size); DrawVert(iso_world, pos + IsoUtils.Vec3FromY(size.y), size); DrawVert(iso_world, pos + IsoUtils.Vec3FromXY(size.x, size.y), size); } }