Struct GravitasDebugDrawCommand
- Namespace
- Gravitas.Diagnostics
- Assembly
- Gravitas.dll
Engine-agnostic debug draw command that host adapters can translate into renderer calls.
public readonly struct GravitasDebugDrawCommand
- Inherited Members
Properties
AxisLength
Gets the full distance between hemisphere centers for WireCapsule commands.
public Fixed64 AxisLength { get; }
Property Value
- Fixed64
Center
Gets the center of a point or wireframe volume.
public Vector3d Center { get; }
Property Value
- Vector3d
Collider2DType
Gets the associated 2D collider type.
public ColliderType2D Collider2DType { get; }
Property Value
ColliderDimension
Gets the dimensional runtime surface of the associated collider.
public GravitasColliderDimension ColliderDimension { get; }
Property Value
ColliderId
Gets the context-local collider identifier, or -1 when unassociated.
public int ColliderId { get; }
Property Value
ColliderType
Gets the associated 3D collider type.
public ColliderType ColliderType { get; }
Property Value
Color
Gets the command color.
public GravitasDiagnosticColor Color { get; }
Property Value
End
Gets the end point for line and ray commands.
public Vector3d End { get; }
Property Value
- Vector3d
Frame
Gets the simulation frame in which the command was captured.
public int Frame { get; }
Property Value
HalfExtents
Gets the center-relative half-extents for WireBox commands.
public Vector3d HalfExtents { get; }
Property Value
- Vector3d
Height
Gets the full height of a cylinder or cone.
public Fixed64 Height { get; }
Property Value
- Fixed64
Kind
Gets the command kind that determines how its payload is interpreted.
public GravitasDebugDrawKind Kind { get; }
Property Value
PointA
Gets the first vertex of a wireframe triangle.
public Vector3d PointA { get; }
Property Value
- Vector3d
PointB
Gets the second vertex of a wireframe triangle.
public Vector3d PointB { get; }
Property Value
- Vector3d
PointC
Gets the third vertex of a wireframe triangle.
public Vector3d PointC { get; }
Property Value
- Vector3d
Radius
Gets the point or wireframe volume radius.
public Fixed64 Radius { get; }
Property Value
- Fixed64
Rotation
Gets the orientation of a wireframe volume.
public FixedQuaternion Rotation { get; }
Property Value
- FixedQuaternion
Sequence
Gets the command's sequence within its capture buffer.
public int Sequence { get; }
Property Value
Start
Gets the start point for line and ray commands.
public Vector3d Start { get; }
Property Value
- Vector3d
Methods
DispatchTo(GravitasDebugDrawCommandVisitor)
Dispatches this draw command to a typed debug draw visitor based on Kind.
public void DispatchTo(GravitasDebugDrawCommandVisitor visitor)
Parameters
visitorGravitasDebugDrawCommandVisitor