How to rotate cone with apex of cone as center, i have set position as shown in below code,The actual cylinder formation position is at center of circle but i want to set the position of cone at the apex, how can i achieve it
var entity = viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(longitudeString, latitudeString,height ),
It looks like Matt’s post there shows you how to manually compute this offset in position. Unfortunately there isn’t an easier way in Cesium to do this currently.
I’ve adapted it to show how you can dynamically rotate the cone on its apex using Callback properties in this Sandcastle example.
You can write your own helper function that’ll take this heading value and compute the right position offset off from the center. There’s no built-in way to do this at the time of writing.