The arrow was jerky

Hello Everone,

I had made a arrow using this function ‘new Cesium.VelocityOrientationProperty’.

However, when i tried the running the application, the arrows was not continually moving (jerky) from point to point.

Is it possible to make the arrow continually moving without jerky? if yes how to do that???

Here is my code below…

var target = viewer.entities.add({

name: (sourceCountry + " - " + destCountry),

position: positions,

orientation: new Cesium.VelocityOrientationProperty(positions),

path: {

resolution: 1,

material: new Cesium.PolylineArrowMaterialProperty(Cesium.Color.RED),

width: 20,

//trailTime: 12460*60,

trailTime: duration, // original is duration

leadTime: 0

},

description: “

Arrow


});

//console.log(“TSDebug after init target\n”);

Cheers,

Abdullah S.N.

Hi there,

Try changing the interpolation type for your entity from linear to smoother algorithm. That should help. Here’s an example: http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Interpolation.html&label=Showcases

Hope that helps,

  • Rachel