Esempio n. 1
0
    /**
     * Draws a rectangle in 3D space from a 2D coordinate with a determined width, height and color.
     * The position received is set at the center of the rectangle.
     */
    public static void draw_rectangle(Vector2 position, float width, float height, Color color)
    {
        Vector3 new_pos = new Vector3(position.x, position.y);

        Debug_Utils.draw_rectangle(new_pos, width, height, color);
    }
Esempio n. 2
0
    /**
     * Draws a circle in 3D space from a 2D coordinate with a determined radius and color.
     *
     * The quality of the circle definition is set to 15 sides since it is a debugging
     * function and doesn't really more precision.
     */
    public static void draw_circle(Vector2 position, float radius, Color color)
    {
        Vector3 new_pos = new Vector3(position.x, position.y, 0F);

        Debug_Utils.draw_circle(new_pos, radius, color);
    }