Table of Contents

Struct GravitasResponseImpulseDiagnosticView

Namespace
Gravitas.Diagnostics
Assembly
Gravitas.dll

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

public readonly struct GravitasResponseImpulseDiagnosticView
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

Event

Gets the underlying diagnostic event.

public GravitasDiagnosticEvent Event { get; }

Property Value

GravitasDiagnosticEvent

Frame

Gets the simulation frame in which the impulse was captured.

public int Frame { get; }

Property Value

int

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

Impulse

Gets the applied impulse.

public Vector3d Impulse { get; }

Property Value

Vector3d

ImpulseMagnitude

Gets the magnitude of the applied impulse.

public Fixed64 ImpulseMagnitude { get; }

Property Value

Fixed64

NormalVelocity

Gets the relative normal velocity used by the response.

public Fixed64 NormalVelocity { get; }

Property Value

Fixed64

PointA

Gets the materialized impulse point on the first collider.

public Vector3d PointA { get; }

Property Value

Vector3d

PointB

Gets the materialized impulse 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