Class PhysicsDebugDraw3D
The physics debug draw 2D.
Implements
Inherited Members
Namespace: Evergine.Framework.Physics3D
Assembly: Evergine.Framework.dll
Syntax
public class PhysicsDebugDraw3D : DisposableObject, ISimulationDebugDraw3D
Constructors
PhysicsDebugDraw3D(RenderManager)
Initializes a new instance of the PhysicsDebugDraw3D class.
Declaration
public PhysicsDebugDraw3D(RenderManager renderManager)
Parameters
Type | Name | Description |
---|---|---|
RenderManager | renderManager | The Render Manager. |
Methods
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
Draw3dText(ref Vector3, string)
Draws 3D text.
Declaration
public void Draw3dText(ref Vector3 location, string textString)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | location | The text's position. |
string | textString | The string of text. |
DrawCircle(float, ref Matrix4x4, ref Color)
Draws a line.
Declaration
public void DrawCircle(float radius, ref Matrix4x4 transform, ref Color color)
Parameters
Type | Name | Description |
---|---|---|
float | radius | The radius. |
Matrix4x4 | transform | The circle's transform. |
Color | color | The line color. |
DrawLine(ref Vector3, ref Vector3, ref Color)
Draws a line.
Declaration
public void DrawLine(ref Vector3 from, ref Vector3 to, ref Color color)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | from | Starting position. |
Vector3 | to | Ending position. |
Color | color | Line color. |
ReportErrorWarning(string)
Reports a warning string.
Declaration
public void ReportErrorWarning(string warningString)
Parameters
Type | Name | Description |
---|---|---|
string | warningString | The warning string. |