Beispiel #1
0
def line_flat(start: Vec3, end: Vec3, color: str = ""):
    """Draw a line in 3D space which is confined to ground level (z=20 units, to
    prevent the line being hidden by grass or other ground decorations).

    :param start: start location
    :param end: end location
    :param color: string naming the color
    :return: None
    """
    renderer.draw_line_3d(start.flat() + flat_z,
                          end.flat() + flat_z, get_color(color))
def line_flat(vec1: Vec3, vec2: Vec3, color: str = ""):
    renderer.draw_line_3d(vec1.flat() + flat_z,
                          vec2.flat() + flat_z, get_color(color))