Struct GravitasGroundProbeDiagnosticView
- Namespace
- Gravitas.Diagnostics
- Assembly
- Gravitas.dll
Typed read-only view over a ground-probe diagnostic event.
public readonly struct GravitasGroundProbeDiagnosticView
- Inherited Members
Properties
BodyId
Gets the context-local body identifier.
public int BodyId { get; }
Property Value
Collider2DType
Gets the probing collider's 2D type.
public ColliderType2D Collider2DType { get; }
Property Value
ColliderDimension
Gets the probing collider's dimension.
public GravitasColliderDimension ColliderDimension { get; }
Property Value
ColliderId
Gets the probing body's context-local collider identifier.
public int ColliderId { get; }
Property Value
ColliderType
Gets the probing collider's 3D type.
public ColliderType ColliderType { get; }
Property Value
Distance
Gets the distance to the hit.
public Fixed64 Distance { get; }
Property Value
- Fixed64
End
Gets the probe endpoint.
public Vector3d End { get; }
Property Value
- Vector3d
Event
Gets the underlying diagnostic event.
public GravitasDiagnosticEvent Event { get; }
Property Value
Frame
Gets the simulation frame in which the probe was captured.
public int Frame { get; }
Property Value
Hit
Gets whether the probe hit a collider.
public bool Hit { get; }
Property Value
HitCollider2DType
Gets the hit collider's 2D type.
public ColliderType2D HitCollider2DType { get; }
Property Value
HitColliderDimension
Gets the hit collider's dimension.
public GravitasColliderDimension HitColliderDimension { get; }
Property Value
HitColliderId
Gets the hit collider identifier, or -1 when no collider was hit.
public int HitColliderId { get; }
Property Value
HitColliderType
Gets the hit collider's 3D type.
public ColliderType HitColliderType { get; }
Property Value
HitPoint
Gets the materialized hit point, or zero when unavailable.
public Vector3d HitPoint { get; }
Property Value
- Vector3d
Mode
Gets the probe mode for a 3D event.
public GroundProbeMode Mode { get; }
Property Value
Mode2D
Gets the probe mode for a 2D event.
public GroundProbeMode2D Mode2D { get; }
Property Value
Normal
Gets the hit normal.
public Vector3d Normal { get; }
Property Value
- Vector3d
Radius
Gets the probe radius.
public Fixed64 Radius { get; }
Property Value
- Fixed64
Sequence
Gets the event's sequence within its capture buffer.
public int Sequence { get; }
Property Value
Start
Gets the probe start point.
public Vector3d Start { get; }
Property Value
- Vector3d