Hi,
I am trying to create a radial effect around the globe. I have it working but it goes vertically through the North Pole. How do I change this so it goes across the globe, a bit like the equator but centred.
Code so far
var r = 6371000 + 2289125;
var t = Math.PI / 180 * 2;
for (var i = 0; i < 180; i++) {
var x = r * Math.cos(t * i);
var z = r * Math.sin(t * i);
var surfacePosition = new Cesium.Cartesian3( x * .985, 0, z * .985);
entities.add({
polyline : {
positions: [surfacePosition, heightPosition],
material : new Cesium.Color(1.0, 1.0, 1.0, 0.2),
followSurface:true,
width: 0.4
}
});
}