コンテンツにスキップ

ControllerPointerSystem クラス

MakeOverlaysInteractiveIfVisible を使わずに、コントローラーレイとオーバーレイの 交差を毎フレーム手動で計算しポインターイベントを生成します。 SteamVR の入力横取りが発生しないため、VRChat の AFK 判定を回避できます。

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

public sealed class ControllerPointerSystem

object ← ControllerPointerSystem

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

ControllerPointerSystem(OverlayIntersection)

Section titled “ControllerPointerSystem(OverlayIntersection)”

MakeOverlaysInteractiveIfVisible を使わずに、コントローラーレイとオーバーレイの 交差を毎フレーム手動で計算しポインターイベントを生成します。 SteamVR の入力横取りが発生しないため、VRChat の AFK 判定を回避できます。

public ControllerPointerSystem(OverlayIntersection intersection)

intersection OverlayIntersection

The overlay intersection service used for ray casting.

Poll(TrackedDevice, ETrackingUniverseOrigin)

Section titled “Poll(TrackedDevice, ETrackingUniverseOrigin)”

指定コントローラーのレイをオーバーレイに向けて交差判定を行い、 ヒットした場合は UV 座標とフェーズを持つ PointerData を返します。 ヒットしない場合は null を返します。

public PointerData? Poll(TrackedDevice device, ETrackingUniverseOrigin trackingOrigin = ETrackingUniverseOrigin.TrackingUniverseStanding)

device TrackedDevice

The logical controller to poll.

trackingOrigin ETrackingUniverseOrigin

The tracking universe used for the pose and intersection ray.

PointerData?

Pointer data for a hit, or null when the device is unavailable or the ray misses.