How Does Earth Move In Relation To The Stars In my simulation, I have stars scattered around Earth, all stars are the same distance from the center of the Earth and positioned based on their right ascension and declination like so:



I am wondering how the movement of Earth can be simulated based on the current time when running the simulation.

I am using the hyg v3 database which can be found here. I think that this dataset has the data necessary to find out the motion of stars, but I may be wrong.

Also, due to the structure of this simulation, with almost 120,000 stars, it is much more efficient to rotate/move the Earth rather than move all of the stars.

How can I show the stars visible over a location at a certain time by simulating the motion of the stars by rotating Earth?
The orientation of Earth wrt the stars repeats each sidereal day (thus ~23:56h). The visible night sky only changes each (synodic 24h) day due to the different direction the sun is at when considering the star's rest frame.

If you have the star's position from like now, you simply rotate Earth for each our by 360/(23.933)° = 15.04°.
If you want to do that for an arbitrary date, take the stars' position: they come with a datum like J2000 which means their position on January 1st 2000 UTC. C calculate the sidereal days passed since then, accounting for the incomplete rotation of the current day which gives the rotation around the Earth's axis as above.

If you want to go into more detail and longer time, and account for centuries and longer, you will need to take into account the nutation and presession of the Earth axis.