PilotGaea 3D O'view
    正在準備搜尋索引...

    介面 CameraMoveEvent

    移動事件參數。

    interface CameraMoveEvent {
        steps?: {
            startPosition: Geo3DPoint;
            endPosition: Geo3DPoint;
            reverse?: boolean;
            time?: number;
            velocity?: number;
            acceleration?: number;
            stepFunction?: (
                entity: window.ov.CustomEntity | window.ov.CustomGLTFEntity,
                position: Geo3DPoint,
            ) => void;
        }[];
        entity?: window.ov.CustomEntity
        | window.ov.CustomGLTFEntity;
        defaultFunction?: (
            entity: window.ov.CustomEntity | window.ov.CustomGLTFEntity,
            position: Geo3DPoint,
        ) => void;
        angularVelocity?: number;
        up?: null | GeoPoint | Geo3DPoint;
        considerModel?: boolean;
        standDetectFrustumHeight?: number;
        standDetectRange?: number;
    }
    索引

    屬性

    steps?: {
        startPosition: Geo3DPoint;
        endPosition: Geo3DPoint;
        reverse?: boolean;
        time?: number;
        velocity?: number;
        acceleration?: number;
        stepFunction?: (
            entity: window.ov.CustomEntity | window.ov.CustomGLTFEntity,
            position: Geo3DPoint,
        ) => void;
    }[]

    階段。

    類型宣告

    • startPosition: Geo3DPoint

      起始座標。

    • endPosition: Geo3DPoint

      結束座標。

    • 可選reverse?: boolean

      面向是否與行進方向相反。

    • 可選time?: number

      時間,與速度及加速度擇一。

    • 可選velocity?: number

      速度 (m/s)。

    • 可選acceleration?: number

      加速度 (m/s^2)。

    • 可選stepFunction?: (
          entity: window.ov.CustomEntity | window.ov.CustomGLTFEntity,
          position: Geo3DPoint,
      ) => void

      階段處理函式。

      (entity, position) => entity.update({ position: position });
      

    自畫圖素。

    defaultFunction?: (
        entity: window.ov.CustomEntity | window.ov.CustomGLTFEntity,
        position: Geo3DPoint,
    ) => void

    預設處理函式。

    類型宣告

    angularVelocity?: number

    角速度 (deg/s)。

    180
    
    up?: null | GeoPoint | Geo3DPoint

    glTF圖素上方向量,null為自動調整。

    null
    
    considerModel?: boolean

    是否考慮三維模型。

    false
    
    standDetectFrustumHeight?: number

    站立採樣攝影機高度 (相對當前移動位置),單位公尺

    1
    
    standDetectRange?: number

    站立偵測範圍,單位公尺

    0.1