Struct GravitasRayQueryDiagnosticView
- Namespace
- Gravitas.Diagnostics
- Assembly
- Gravitas.dll
Typed read-only view over a 3D ray or swept-sphere query diagnostic event.
public readonly struct GravitasRayQueryDiagnosticView
- Inherited Members
Properties
Distance
Gets the distance to the nearest hit.
public Fixed64 Distance { get; }
Property Value
- Fixed64
End
Gets the query 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 query was captured.
public int Frame { get; }
Property Value
Hit
Gets whether the query hit a collider.
public bool Hit { 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 type.
public ColliderType HitColliderType { get; }
Property Value
HitCount
Gets the number of hits reported by the query.
public int HitCount { get; }
Property Value
HitPoint
Gets the materialized hit point, or zero when unavailable.
public Vector3d HitPoint { get; }
Property Value
- Vector3d
LayerMaskBits
Gets the query layer-mask bits.
public int LayerMaskBits { get; }
Property Value
Normal
Gets the hit normal.
public Vector3d Normal { get; }
Property Value
- Vector3d
Sequence
Gets the event's sequence within its capture buffer.
public int Sequence { get; }
Property Value
Start
Gets the query start point.
public Vector3d Start { get; }
Property Value
- Vector3d
SweepRadius
Gets the sweep radius, or zero for a raycast.
public Fixed64 SweepRadius { get; }
Property Value
- Fixed64