PhysicsEngineRenderLine Method |
Creates a renderable line and adds it to the render list.
Namespace:
Demo3D.Visuals
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntaxpublic void RenderLine(
Vector3 from,
Vector3 to,
Color color,
bool persistent = false,
string key = ""
)
Parameters
- from
- Type: Microsoft.DirectXVector3
The starting world-space position for the line. - to
- Type: Microsoft.DirectXVector3
The ending world-space position for the line. - color
- Type: System.DrawingColor
The color for the line. - persistent (Optional)
- Type: SystemBoolean
Whether the line is cleared only before a timestep. - key (Optional)
- Type: SystemString
The key that identifies categories of lines.
See Also