Need Curve For Polyline

I need this line to be curve is it possible it is like exact cut as shown in above here is the code i have used

let purpleArrow = viewer.entities.add({
name: “Purple straight arrow at height”,
polyline: {
positions: Cesium.Cartesian3.fromDegreesArrayHeights([
53.047558200555294,
22.991612130136787,
0,
center_[0],
center_[1],
15,
53.049107817966025,
22.99549595423479,
0,
]),
width: 4,
material: new Cesium.PolylineArrowMaterialProperty(Cesium.Color.RED),
},
});

Here is something using CatmullRomSpline:

Sandcastle link

The idea is to fit a spline to your points, and then sample in between your points.

https://cesium.com/learn/cesiumjs/ref-doc/CatmullRomSpline.html?classFilter=spline#CatmullRomSpline

Selection_330

You can adjust the way it looks by playing with the tangents and input points. You can also explore the other splines that we have (search “spline” in the reference API documentation). It depends on what you mean by “curve”.

Thank you it worked!

Hello I want that line to animate from start point to end point