How to set origin to cone

how to set origin of cone and enable shadows to the cone

Hi! You can define a cone as an entity in Cesium.

This sandcastle is about cones and cylinders, and this one is about shadows.

This one (that I briefly put together) makes a cone with a shadow. You have to enable both the cone’s shadows and also the viewer’s shadows.

Hope this helps :smiley:

You can transform a cone with a model matrix as described here:

https://groups.google.com/forum/?place=forum%2Fcesium-dev&showsearch=true&hideforumtitle=true&fragments=true&parenturl=https%3A%2F%2Fcesiumjs.org%2Fforum%2F&theme=default#!searchin/cesium-dev/cone|sort:date/cesium-dev/n93y2uMzIFA/Oo3tvdfDAgAJ

As for shadows, this thread has an example on that:

https://groups.google.com/forum/?place=forum%2Fcesium-dev&showsearch=true&hideforumtitle=true&fragments=true&parenturl=https%3A%2F%2Fcesiumjs.org%2Fforum%2F&theme=default#!searchin/cesium-dev/shadow|sort:date/cesium-dev/FLOUH6ndQhc/x169TP9TBQAJ