Interface MoveThirdPersonViewOptions

第三人稱模式調節參數。

熱鍵說明:

  • W: 向前移動
  • S: 向後移動
  • A: 向左移動
  • D: 向右移動
  • 上: 面對注視點視角向上
  • 下: 面對注視點視角向下
  • 左: 面對注視點向左移動
  • 右: 面對注視點向右移動
  • +: 面對注視點逆時針移動
  • -: 面對注視點順時針移動
  • 滑鼠左鍵: 視角拖曳
  • 滑鼠中鍵: 移動到游標所指座標
interface MoveThirdPersonViewOptions {
    collisionBoxHeight?: number;
    collisionBoxWidth?: number;
    collisionDetectFrustumHeight?: number;
    collisionDetectRange?: number;
    considerModel?: boolean;
    disableKeyboard?: boolean;
    disableMouse?: boolean;
    fixSpeed?: boolean;
    focusPoint?: GeoPoint | Geo3DPoint;
    glTFModel?: CustomGLTFEntity;
    glTFModelFunction?: GLTFModelFunction;
    heightAboveGround?: number;
    maxDistance?: number;
    maxPolarAngle?: number;
    minDistance?: number;
    minPolarAngle?: number;
    moveSpeed?: number;
    object?: any;
    standDetectFrustumHeight?: number;
    standDetectRange?: number;
    staticAzimuthAngleOffset?: number;
    zoomRate?: number;
}

Properties

collisionBoxHeight?: number

碰撞方塊高度

collisionBoxWidth?: number

碰撞方塊寬度

collisionDetectFrustumHeight?: number

碰撞採樣攝影機高度(相對當前攝影機位置),單位公尺

collisionDetectRange?: number

站立偵測範圍,預設為0.1(公尺)

considerModel?: boolean

是否考慮三維模型

disableKeyboard?: boolean

關閉鍵盤輸入

disableMouse?: boolean

關閉滑鼠輸入

fixSpeed?: boolean

固定速度,不隨攝影機高度調整

focusPoint?: GeoPoint | Geo3DPoint

初始注視點

glTFModel?: CustomGLTFEntity

使用的模型

glTFModelFunction?: GLTFModelFunction

模型處理函式

heightAboveGround?: number

離地高度

maxDistance?: number

距離注視點最大距離

maxPolarAngle?: number

天頂角上限

minDistance?: number

距離注視點最小距離

minPolarAngle?: number

天頂角下限

moveSpeed?: number

移動速度,若fixSpeedfalse,為初始速度;若fixSpeedtrue,為最終速度

object?: any

物件參數,會在 GLTFModelFunction 取得

standDetectFrustumHeight?: number

站立採樣攝影機高度(相對注視點),單位公尺

standDetectRange?: number

碰撞偵測範圍,預設為0.5(公尺)

staticAzimuthAngleOffset?: number

方位角平移量

zoomRate?: number

縮放速度

Generated using TypeDoc