飞行路径漫游
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ys |
Object | YouScene对象 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
options |
Object |
对象有下面这些属性:
|
Example:
var points = [
{x: 114.00840184155334, y: 29.854931486205555, z: 100},
{x: 114.01128800525507, y: 29.852535468795992, z: 50},
{x: 114.01604140807802, y: 29.850976415142217, z: 60},
{x: 114.02144096472733, y: 29.85308012436106, z: 40},
{x: 114.02227970191544, y: 29.85887161080766, z: 50},
{x: 114.01921171429447, y: 29.86353108232961, z: 70},
{x: 114.01409554961663, y: 29.863956930494343, z: 90},
{x: 114.00945726901081, y: 29.858707666373917, z: 100},
{x: 114.00867131010236, y: 29.85653088576768, z: 60},
{x: 114.00840184155334, y: 29.854931486205555, z: 50},
]
var flightPathRoming = new YS.FlightPathRoming(youScene, {
points: points,
});
flightPathRoming.fly();
Members
-
获取或设置漫游速度(m/s)
-
Default Value:
10
-
lineMaterial : LineMaterial
-
获取或设置飞行路径的材质
-
Default Value:
LineMaterial.glowLine(new Color(1, 1, 0, 1), 0.5)
-
获取或设置飞行路径的宽度
-
Default Value:
5
-
lockView : LockView
-
获取或设置视角
-
Default Value:
LockView.FIRST_VIEW
-
获取或设置飞行飞机显示的模型大小
-
Default Value:
128
-
获取或设置飞行飞机的模型URL
-
Default Value:
YSLOCALURL + 'Assets/model/Air.glb'
-
获取或设置端点转角角速度(度/s)
-
Default Value:
10
-
获取或设置模型的比例
-
Default Value:
1
-
获取或设置飞行模型是否显示
-
Default Value:
true
-
获取或设置飞行路径是否显示
-
Default Value:
true
-
获取或设置视角距离(锁定第一视角时有效)
-
Default Value:
100
-
获取或设置视角高度(锁定第一视角时有效)
-
Default Value:
50
Methods
-
继续飞行
-
销毁
-
开始飞行
-
暂停飞行
Events
-
漫游结束事件监听
-
漫游过程事件监听
Name Type Description time
String 漫游经过时间 point
XYZ 当前位置