Table of Contents

Struct GravitasMixedQueryDiagnosticView

Namespace
Gravitas.Diagnostics
Assembly
Gravitas.dll

Typed read-only view over a mixed 3D/2D query diagnostic event.

public readonly struct GravitasMixedQueryDiagnosticView
Inherited Members

Properties

Collider2DDimension

Gets the 2D collider's dimension tag.

public GravitasColliderDimension Collider2DDimension { get; }

Property Value

GravitasColliderDimension

Collider2DId

Gets the participating 2D collider identifier, or -1 when absent.

public int Collider2DId { get; }

Property Value

int

Collider2DType

Gets the participating 2D collider type.

public ColliderType2D Collider2DType { get; }

Property Value

ColliderType2D

Collider3DDimension

Gets the 3D collider's dimension tag.

public GravitasColliderDimension Collider3DDimension { get; }

Property Value

GravitasColliderDimension

Collider3DId

Gets the participating 3D collider identifier, or -1 when absent.

public int Collider3DId { get; }

Property Value

int

Collider3DType

Gets the participating 3D collider type.

public ColliderType Collider3DType { get; }

Property Value

ColliderType

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

GravitasDiagnosticEvent

Frame

Gets the simulation frame in which the query was captured.

public int Frame { get; }

Property Value

int

Hit

Gets whether the query found a target.

public bool Hit { get; }

Property Value

bool

HitCount

Gets the number of hits reported by the query.

public int HitCount { get; }

Property Value

int

LayerMaskBits

Gets the query layer-mask bits.

public int LayerMaskBits { get; }

Property Value

int

Normal3DTo2D

Gets the hit normal directed from the 3D collider toward the 2D collider.

public Vector3d Normal3DTo2D { get; }

Property Value

Vector3d

Point2D

Gets the materialized hit point on the 2D collider, or zero when unavailable.

public Vector3d Point2D { get; }

Property Value

Vector3d

Point3D

Gets the materialized hit point on the 3D collider, or zero when unavailable.

public Vector3d Point3D { get; }

Property Value

Vector3d

Radius

Gets the query 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 query start point.

public Vector3d Start { get; }

Property Value

Vector3d