How to add a Satellite to Cesium Map?

Hi! I'm new using Cesium.

I want to add a satellite spinning around the earth following a certain trajectory. How could I do it?

Thank you!

Hi! Welcome to the Cesium forum!

You’re in luck - CesiumJS was created for just this sort of thing! Here’s an example doing just that loading it from a CZML file:

https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=CZML.html

You can see this file here:

https://cesiumjs.org/Cesium/Apps/SampleData/simple.czml

CZML is an easy way to package time dynamic data and render it in CesiumJS. You could instead create this entity and point positions manually or with code inside your application.

Let me know if this helps!