| clampToTileset: false, | clampToTileset: false, | ||||
| interpolationType: 'Linear', | interpolationType: 'Linear', | ||||
| interpolationDegree: 2, | interpolationDegree: 2, | ||||
| endDelayTime: 0.5 | |||||
| endDelayTime: 0.5, | |||||
| headingOffset: 0 | |||||
| } | } | ||||
| const DEF_PATH_STYLE = { | const DEF_PATH_STYLE = { | ||||
| } | } | ||||
| let orientation = this._velocityOrientation.getValue(now) | let orientation = this._velocityOrientation.getValue(now) | ||||
| if (orientation) { | if (orientation) { | ||||
| this._delegate.orientation = orientation | |||||
| let quaternion = Cesium.Quaternion.fromHeadingPitchRoll( | |||||
| new Cesium.HeadingPitchRoll( | |||||
| Cesium.Math.toRadians(this._options.headingOffset || 0), | |||||
| 0, | |||||
| 0 | |||||
| ), | |||||
| new Cesium.Quaternion() | |||||
| ) | |||||
| this._delegate.orientation = Cesium.Quaternion.multiply( | |||||
| orientation, | |||||
| quaternion, | |||||
| new Cesium.Quaternion() | |||||
| ) | |||||
| } | } | ||||
| let time = this._timeLine[this._positionIndex] | let time = this._timeLine[this._positionIndex] | ||||
| if (time) { | if (time) { |