I'm trying to create a space map and so far everything is going as planned except for one thing: planetary orbits.
In my map, I have planet-units and star-units; all the planets in planet (unit) group [x] are supposed to orbit star [x] by having them move to a point that is X distance from the star and then just adding 1 to the angle between the star and planet.
It works beautifully until the angle of the planet in relation to the star gets to ~180 deg. and from there it simply bounces between ~179 deg. and ~181 deg.
If I attempt to set the starting angle of the planet in relation to the star any higher than 180 deg., it will immediately set to 90 deg.
In my map, I have planet-units and star-units; all the planets in planet (unit) group [x] are supposed to orbit star [x] by having them move to a point that is X distance from the star and then just adding 1 to the angle between the star and planet.
It works beautifully until the angle of the planet in relation to the star gets to ~180 deg. and from there it simply bounces between ~179 deg. and ~181 deg.
If I attempt to set the starting angle of the planet in relation to the star any higher than 180 deg., it will immediately set to 90 deg.