/// <summary> /// Draws text in 2D, but the upper-left corner is at a 3D-tracked position in world space. /// </summary> /// <param name="text">The text to draw.</param> /// <param name="color">The color of the string.</param> /// <param name="upperLeft">The location of the upper left corner of the text.</param> /// <param name="scaleX">The multiplier for the width of the text.</param> /// <param name="scaleY">The multiplier for the height of the text</param> public void DrawString3D(String text, Color color, rlbot.flat.Vector3 upperLeft, int scaleX, int scaleY) { DrawString3D(text, color, new Vector3(upperLeft.X, upperLeft.Y, upperLeft.Z), scaleX, scaleY); }
/// <summary> /// Draws a 2D line which starts at a screen coordinate and ends at a 3D coordinate. /// </summary> /// <param name="color">The color of the line.</param> /// <param name="start">The start point of the line.</param> /// <param name="end">The end point of the line.</param> public void DrawLine2D3D(Color color, Vector2 start, rlbot.flat.Vector3 end) { DrawLine2D3D(color, start, new Vector3(end.X, end.Y, end.Z)); }
/// <summary> /// Draws a 2D rectangle at a 3D-tracked position in world space.<br/> /// The given position is center of the rectangle. /// </summary> /// <param name="color">The color of the rectangle.</param> /// <param name="position">The center of the rectangle.</param> /// <param name="width">The width in pixels.</param> /// <param name="height">The height in pixels</param> /// <param name="filled">Flag indicating whether the rectangle should be filled in</param> public void DrawCenteredRectangle3D(Color color, rlbot.flat.Vector3 position, int width, int height, bool filled) { DrawCenteredRectangle3D(color, new Vector3(position.X, position.Y, position.Z), width, height, filled); }
/// <summary> /// Draws a line between two points in world space. /// </summary> /// <param name="color">The color of the line.</param> /// <param name="start">The start point of the line.</param> /// <param name="end">The end point of the line.</param> public void DrawLine3D(Color color, rlbot.flat.Vector3 start, rlbot.flat.Vector3 end) { DrawLine3D(color, new Vector3(start.X, start.Y, start.Z), new Vector3(end.X, end.Y, end.Z)); }