TripControl
TripControl 物件
creation
js
threeScene.toTripControl(...);
method
setTrip(trip)
- 是否地图跟随
- 参数
- {boolean}
trip
- {boolean}
- 返回值: this
js
truckControls.forEach((element) => {
element.setAnimation(animation);
console.log(element.isAnimation());
});
if (truckControl) {
truckControl.setTrip(trip);
}
setAnimation(animation)
- 设置动画与否
- 参数
- {boolean}
animation
- {boolean}
- 返回值: this
isAnimation()
- 是否动画
- 返回值: boolean