I am trying to create an animation with Polylines moving from one coordinate to the other over time.
So I have each polyline is an entity. And Each has an array points of [[time, lat, long, height], ...].
My code is roughly as follow:
var samples = new Cesium.SampledPositionProperty();
var position = Cesium.Cartesian3.fromDegrees(long, lat, height, ellipsoid, cartesian3Scratch);
var polyline = new Cesium.PolylineGraphics();
polyline.followSurface = new Cesium.ConstantProperty(false);
polyline.positions = new Cesium.PositionPropertyArray(samples);
entity.polyline = polyline
The problem is when I try to animate with this, only tip of the polyline moves to the new position. The root of it stays the same. You can see it from here: http://staging.nova.scapp.io/testing.html
How can I make the whole polyline move ?
Thank you very much.