Class: FirstPersonRoaming

Glodon.CIMCube.Animation.Effect. FirstPersonRoaming

第一人称漫游仿真类,用于实现第一人称视角漫游

new FirstPersonRoaming(map, opt)

第一人称漫游仿真
Parameters:
Name Type Description
map Glodon.CIMCube CIMCube实例
opt Object 模型漫游轨迹参数
Properties
Name Type Argument Default Description
moveStep Number <optional>
1 前后左右平移步长,单位 米/s
upDownStep Number <optional>
1 上下移动步长,单位 米/s
headingStep Number <optional>
3 水平视角移动步长,单位 度/s
pitchStep Number <optional>
3 垂直视角移动步长,单位 度/s
position Object <optional>
相机位置,默认为相机本身的位置
heading Number <optional>
相机朝向角(单位度),默认为相机本身的朝向角
pitch Number <optional>
相机俯仰角度(单位度),默认为相机本身的俯仰角度
roll Number <optional>
相机翻滚角(单位度),默认为相机本身的翻滚角
maxPitch Number <optional>
60 相机俯仰角度最大值(单位度),默认为60
minPitch Number <optional>
-60 相机俯仰角度最小值(单位度),默认为-60

Members


headingStatus :Number

左右转动;-1:左转;0不动,1:右转
Type:
  • Number

headingStep :Number

左转右转步长(单位度)
Type:
  • Number

moveLeftRightStatus :Number

左右平移;-1:左移;0不动,1:右移
Type:
  • Number

moveStatus :Number

前后平移;-1:后退;0不动,1:前进
Type:
  • Number

moveStep :Number

前后左右移动步长(单位米)
Type:
  • Number

pitchStatus :Number

上下转动;-1:低头;0不动,1:抬头
Type:
  • Number

pitchStep :Number

抬头低头步长(单位度)
Type:
  • Number

upDownStatus :Number

上下移动;-1:下降;0不动,1:上升
Type:
  • Number

upDownStep :Number

上下移动步长(单位米)
Type:
  • Number

<readonly> viewInfo :Object

视图信息,包含两部分:相机的位置(经纬高),相机的姿态(航向、俯仰、滚动)
Type:
  • Object

Methods


dispose()

释放资源

play()

轨迹动画开始

stop()

轨迹动画停止