OverlayHit 構造体
Describes where a ray intersected an overlay.
名前空間: FloatSoda.OVR.Overlay
アセンブリ: FloatSoda.OVR.dll
public readonly record struct OverlayHit : IEquatable<OverlayHit>実装するインターフェイス
Section titled “実装するインターフェイス”継承したメンバー
Section titled “継承したメンバー”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
コンストラクター
Section titled “コンストラクター”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)パラメーター
Section titled “パラメーター”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.
Distance
Section titled “Distance”The distance from the ray origin to the hit point.
public float Distance { get; init; }プロパティの値
Section titled “プロパティの値”Normal
Section titled “Normal”The surface normal at the hit point.
public Vector3 Normal { get; init; }プロパティの値
Section titled “プロパティの値”The hit point in tracking-space coordinates.
public Vector3 Point { get; init; }プロパティの値
Section titled “プロパティの値”The normalized texture coordinate at the hit point.
public Vector2 UV { get; init; }プロパティの値
Section titled “プロパティの値”FromVROverlayIntersectionResults(VROverlayIntersectionResults_t)
Section titled “FromVROverlayIntersectionResults(VROverlayIntersectionResults_t)”Converts OpenVR intersection results to an OverlayHit.
public static OverlayHit FromVROverlayIntersectionResults(VROverlayIntersectionResults_t result)パラメーター
Section titled “パラメーター”result VROverlayIntersectionResults_t
The native OpenVR intersection results.
The converted overlay hit.