XR手把座標變更事件。

interface XRGamepadOnPosChangeEvent {
    handedness: "left" | "right" | "none";
    hoverEntity: null | {
        entityId: number;
        layerName: string;
    };
    pos: GeoPoint;
    rayEndDistance: number;
    rayEndPos: GeoPoint;
    rayOriginEndDistance: number;
    rayOriginEndPos: GeoPoint;
    v: GeoPoint;
}

Properties

handedness: "left" | "right" | "none"

手把慣用手

hoverEntity: null | {
    entityId: number;
    layerName: string;
}

射線懸停圖素資訊

Type declaration

  • entityId: number

    圖素Id

  • layerName: string

    圖素圖層名稱

手把中心點

rayEndDistance: number

射線終點長度

rayEndPos: GeoPoint

射線終點座標

rayOriginEndDistance: number

射線終點長度(無視碰撞)

rayOriginEndPos: GeoPoint

射線終點座標(無視碰撞)

射線方向

Generated using TypeDoc