Skip to content

TripControl

TripControl 物件

creation

js
  threeScene.toTripControl(...);

method

setTrip(trip)

  • 是否地图跟随
  • 参数
    • {boolean} trip
  • 返回值: this
js
truckControls.forEach((element) => {
    element.setAnimation(animation);
    console.log(element.isAnimation());
});
if (truckControl) {
    truckControl.setTrip(trip);
}

setAnimation(animation)

  • 设置动画与否
  • 参数
    • {boolean} animation
  • 返回值: this

isAnimation()

  • 是否动画
  • 返回值: boolean

其他方法参考 [YY. BaseObject]

This document is generated by vitepress and Edit by deyihu