Table of Contents

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

int

Collider2DType

Gets the probing collider's 2D type.

public ColliderType2D Collider2DType { get; }

Property Value

ColliderType2D

ColliderDimension

Gets the probing collider's dimension.

public GravitasColliderDimension ColliderDimension { get; }

Property Value

GravitasColliderDimension

ColliderId

Gets the probing body's context-local collider identifier.

public int ColliderId { get; }

Property Value

int

ColliderType

Gets the probing collider's 3D type.

public ColliderType ColliderType { get; }

Property Value

ColliderType

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

GravitasDiagnosticEvent

Frame

Gets the simulation frame in which the probe was captured.

public int Frame { get; }

Property Value

int

Hit

Gets whether the probe hit a collider.

public bool Hit { get; }

Property Value

bool

HitCollider2DType

Gets the hit collider's 2D type.

public ColliderType2D HitCollider2DType { get; }

Property Value

ColliderType2D

HitColliderDimension

Gets the hit collider's dimension.

public GravitasColliderDimension HitColliderDimension { get; }

Property Value

GravitasColliderDimension

HitColliderId

Gets the hit collider identifier, or -1 when no collider was hit.

public int HitColliderId { get; }

Property Value

int

HitColliderType

Gets the hit collider's 3D type.

public ColliderType HitColliderType { get; }

Property Value

ColliderType

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

GroundProbeMode

Mode2D

Gets the probe mode for a 2D event.

public GroundProbeMode2D Mode2D { get; }

Property Value

GroundProbeMode2D

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

int

Start

Gets the probe start point.

public Vector3d Start { get; }

Property Value

Vector3d