Stars do not travel in straight lines through space. They actually move in curved paths which are determined by the gravitational forces of nearby stars and other celestial objects. These curved paths are usually referred to as orbits. The gravitational forces affect the velocity and direction of the star, causing it to move in a curved trajectory. Furthermore, stars can also experience additional perturbations due to interactions with other stars or galaxies, causing them to deviate from their original paths.