Table of Contents

Struct GravitasContactDiagnosticView

Namespace
Gravitas.Diagnostics
Assembly
Gravitas.dll

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

public readonly struct GravitasContactDiagnosticView
Inherited Members

Properties

ColliderAId

Gets the first context-local collider identifier.

public int ColliderAId { get; }

Property Value

int

ColliderAType

Gets the first collider type.

public ColliderType ColliderAType { get; }

Property Value

ColliderType

ColliderBId

Gets the second context-local collider identifier.

public int ColliderBId { get; }

Property Value

int

ColliderBType

Gets the second collider type.

public ColliderType ColliderBType { get; }

Property Value

ColliderType

ContactCount

Gets the number of contacts in the manifold.

public int ContactCount { get; }

Property Value

int

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 collision produced a contact.

public bool HasContact { get; }

Property Value

bool

HasPointA

Gets whether PointA contains a materialized point.

public bool HasPointA { get; }

Property Value

bool

HasPointB

Gets whether PointB contains a materialized point.

public bool HasPointB { get; }

Property Value

bool

Normal

Gets the contact normal.

public Vector3d Normal { get; }

Property Value

Vector3d

PointA

Gets the materialized contact point on the first collider.

public Vector3d PointA { get; }

Property Value

Vector3d

PointB

Gets the materialized contact point on the second collider.

public Vector3d PointB { get; }

Property Value

Vector3d

Sequence

Gets the event's sequence within its capture buffer.

public int Sequence { get; }

Property Value

int