FirstPersonController

new Cesium.FirstPersonController(options)

第一人称视角控制。 激活以后可以晃动鼠标调整视角姿态,按下 ESC 键退出第一人称视角模式。
支持  w s a d e q 进行前进、后退,左移、右移,上移、下移,不区分大小写,支持长按操作。 4个方向键支持前进、后退,左移、右移操作,支持长按操作。
alt shift ctrl 分别对应正常步长(速度)的0.2倍、5倍、100倍,支持组合按下。
Name Type Description
options Object 包含如下:
Name Type Default Description
scene Scene 必须传入
rotateFactor number 0.003 optional 旋转因子,对应弧度
step number 0.08 optional 基础移动步长,米
Example:
const controller=new Cesium.FirstPersonController({
      scene:viewer.scene
    })
    controller.active = true; // 激活第一人称视角

Members

是否激活第一人称视角操控
基础移动步长
旋转因子
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.