Struct GravitasVelocityDeltaDiagnosticView
- Namespace
- Gravitas.Diagnostics
- Assembly
- Gravitas.dll
Typed read-only view over linear or angular velocity diagnostic events.
public readonly struct GravitasVelocityDeltaDiagnosticView
- Inherited Members
Properties
After
Gets the velocity after the change.
public Vector3d After { get; }
Property Value
- Vector3d
Before
Gets the velocity before the change.
public Vector3d Before { get; }
Property Value
- Vector3d
BodyId
Gets the context-local body identifier.
public int BodyId { get; }
Property Value
ColliderId
Gets the body's context-local collider identifier.
public int ColliderId { get; }
Property Value
ColliderType
Gets the body's collider type.
public ColliderType ColliderType { get; }
Property Value
Delta
Gets the velocity delta.
public Vector3d Delta { get; }
Property Value
- Vector3d
Event
Gets the underlying diagnostic event.
public GravitasDiagnosticEvent Event { get; }
Property Value
Frame
Gets the simulation frame in which the velocity change was captured.
public int Frame { get; }
Property Value
Kind
Gets whether the event describes linear or angular velocity.
public GravitasDiagnosticEventKind Kind { get; }
Property Value
ResultSpeed
Gets the magnitude of the resulting velocity.
public Fixed64 ResultSpeed { get; }
Property Value
- Fixed64
Sequence
Gets the event's sequence within its capture buffer.
public int Sequence { get; }