Class PhysicsDebugDraw3D
The physic debug draw 2D.
Inherited Members
Namespace: Evergine.Framework.Physics3D
Assembly: Evergine.Framework.dll
Syntax
public class PhysicsDebugDraw3D : DisposableObject, IDisposable, 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()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
Overrides
Draw3dText(ref Vector3, string)
Draw a 3D text.
Declaration
public void Draw3dText(ref Vector3 location, string textString)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | location | The text position. |
string | textString | The text string. |
DrawCircle(float, ref Matrix4x4, ref Color)
Draw 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 transform. |
Color | color | Line color. |
DrawLine(ref Vector3, ref Vector3, ref Color)
Draw a line.
Declaration
public void DrawLine(ref Vector3 from, ref Vector3 to, ref Color color)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | from | Start position. |
Vector3 | to | End position. |
Color | color | Line color. |
ReportErrorWarning(string)
Report warning string.
Declaration
public void ReportErrorWarning(string warningString)
Parameters
Type | Name | Description |
---|---|---|
string | warningString | The warning string. |