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
ColliderAType
Gets the first collider type.
public ColliderType ColliderAType { get; }
Property Value
ColliderBId
Gets the second context-local collider identifier.
public int ColliderBId { get; }
Property Value
ColliderBType
Gets the second collider type.
public ColliderType ColliderBType { get; }
Property Value
ContactCount
Gets the number of contacts in the manifold.
public int ContactCount { get; }
Property Value
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
Event
Gets the underlying diagnostic event.
public GravitasDiagnosticEvent Event { get; }
Property Value
Frame
Gets the simulation frame in which the contact was captured.
public int Frame { get; }
Property Value
HasContact
Gets whether the collision produced a contact.
public bool HasContact { get; }
Property Value
HasPointA
Gets whether PointA contains a materialized point.
public bool HasPointA { get; }
Property Value
HasPointB
Gets whether PointB contains a materialized point.
public bool HasPointB { get; }
Property Value
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; }