Table of Contents

Struct GravitasMixedContactDiagnosticView

Namespace
Gravitas.Diagnostics
Assembly
Gravitas.dll

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

public readonly struct GravitasMixedContactDiagnosticView
Inherited Members

Properties

Collider2DDimension

Gets the 2D collider's dimension tag.

public GravitasColliderDimension Collider2DDimension { get; }

Property Value

GravitasColliderDimension

Collider2DId

Gets the context-local 2D collider identifier.

public int Collider2DId { get; }

Property Value

int

Collider2DType

Gets the 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 context-local 3D collider identifier.

public int Collider3DId { get; }

Property Value

int

Collider3DType

Gets the 3D collider type.

public ColliderType Collider3DType { get; }

Property Value

ColliderType

Depth

Gets the contact penetration depth.

public Fixed64 Depth { get; }

Property Value

Fixed64

DepthIsClamped

Gets whether the reported penetration depth was clamped.

public bool DepthIsClamped { get; }

Property Value

bool

Event

Gets the underlying diagnostic event.

public GravitasDiagnosticEvent Event { get; }

Property Value

GravitasDiagnosticEvent

Frame

Gets the simulation frame in which the contact was captured.

public int Frame { get; }

Property Value

int

HasContact

Gets whether the mixed collision produced a contact.

public bool HasContact { get; }

Property Value

bool

HasPoint2D

Gets whether Point2D contains a materialized point.

public bool HasPoint2D { get; }

Property Value

bool

HasPoint3D

Gets whether Point3D contains a materialized point.

public bool HasPoint3D { get; }

Property Value

bool

Normal3DTo2D

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

public Vector3d Normal3DTo2D { get; }

Property Value

Vector3d

Point2D

Gets the materialized contact point on the 2D collider.

public Vector3d Point2D { get; }

Property Value

Vector3d

Point3D

Gets the materialized contact point on the 3D collider.

public Vector3d Point3D { get; }

Property Value

Vector3d

Sequence

Gets the event's sequence within its capture buffer.

public int Sequence { get; }

Property Value

int