Метод | Описание | |
---|---|---|
DrawArrow ( |
Draws an arrow using Debug.Draw
|
|
DrawBox ( |
Draws a box using Debug.Draw functions
|
|
DrawCircle ( |
Draws a Circle using Debug.Draw functions
|
|
DrawEdges ( |
Draws an array of edges, where an edge is defined by two Vector2 points, using Debug.Draw
|
|
DrawPolygon ( |
Draws a polygon, defined by all verteces of the polygon, using Debug.Draw
|
Метод | Описание | |
---|---|---|
DebugDrawArrowhead ( |
||
GetArrowSizeForLine ( |
public static DrawArrow ( |
||
origin | Origin point in world space. | |
endpoint | Endpoint in world space. | |
color | Color for Debug.Draw. | |
duration | float | Duration to show the arrow. |
Результат | void |
public static DrawBox ( |
||
worldTopLeft | World top left corner. | |
worldBottomRight | World bottom right corner. | |
color | Color for Debug.Draw. | |
duration | float | Duration to show the box. |
Результат | void |
public static DrawCircle ( |
||
center | Center point. | |
radius | float | Radius of the circle. |
color | Color for Debug.Draw. | |
numSegments | float | Number of segments for the circle, used for precision of the draw. |
duration | float | Duration to show the circle. |
Результат | void |
public static DrawEdges ( |
||
worldPoints | World points, defining each vertex of an edge in world space. | |
color | Color for Debug.Draw. | |
duration | float | Duration to show the edges. |
Результат | void |
public static DrawPolygon ( |
||
worldPoints | World points, defining each vertex of the polygon in world space. | |
color | Color for Debug.Draw. | |
duration | float | Duration to show the polygon. |
Результат | void |