コンテンツにスキップ

OverlayHit 構造体

Describes where a ray intersected an overlay.

名前空間: FloatSoda.OVR.Overlay
アセンブリ: FloatSoda.OVR.dll

public readonly record struct OverlayHit : IEquatable<OverlayHit>

IEquatable<OverlayHit>

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

OverlayHit(Vector2, Vector3, Vector3, float)

Section titled “OverlayHit(Vector2, Vector3, Vector3, float)”

Describes where a ray intersected an overlay.

public OverlayHit(Vector2 UV, Vector3 Normal, Vector3 Point, float Distance)

UV Vector2

The normalized texture coordinate at the hit point.

Normal Vector3

The surface normal at the hit point.

Point Vector3

The hit point in tracking-space coordinates.

Distance float

The distance from the ray origin to the hit point.

The distance from the ray origin to the hit point.

public float Distance { get; init; }

float

The surface normal at the hit point.

public Vector3 Normal { get; init; }

Vector3

The hit point in tracking-space coordinates.

public Vector3 Point { get; init; }

Vector3

The normalized texture coordinate at the hit point.

public Vector2 UV { get; init; }

Vector2

FromVROverlayIntersectionResults(VROverlayIntersectionResults_t)

Section titled “FromVROverlayIntersectionResults(VROverlayIntersectionResults_t)”

Converts OpenVR intersection results to an OverlayHit.

public static OverlayHit FromVROverlayIntersectionResults(VROverlayIntersectionResults_t result)

result VROverlayIntersectionResults_t

The native OpenVR intersection results.

OverlayHit

The converted overlay hit.