public void DrawArc(Vector3 position, float radius, float angle, float rotation) { Vector3[] vertices = MathUtility.CalcArcVertex(radius, angle, rotation, Matrix4x4.Translate(position), true, subdivide); DrawPolygon(vertices); }
public void DrawCapsule2D(float height, float radius, Matrix4x4 matrix) { Vector3[] vertices = MathUtility.CalcCapsuleVertex2D(height, radius, matrix, subdivide); DrawPolygon(vertices); }
public void DrawCircle(float radius, Matrix4x4 matrix) { Vector3[] vertices = MathUtility.CalcCircleVertex(radius, matrix, subdivide); DrawPolygon(vertices); }
public void DrawArc(float radius, float angle, float rotation, Matrix4x4 matrix) { Vector3[] vertices = MathUtility.CalcArcVertex(radius, angle, rotation, matrix, true, subdivide); DrawPolygon(vertices); }
public void DrawRect(Vector2 size, Matrix4x4 matrix) { Vector3[] vertices = MathUtility.CalcRectVertex(size, matrix); DrawPolygon(vertices); }