pioneerspacesim/pioneer — pull request #1695 by irigi (2012-11-07 17:02:12+00:00)
Title: Tidal-locking

This routine adds tidal locking into system generation. The idea is that planets close to their stars and moons close to their planets, tend to go to tidal-lock state when orbital period = rotational period and axisTilt = 0. I used formula from Wikipedia. The planet is compared to Moon's tidal lock time and the orbit parameters are changed accordingly.

Please check this especially for the floating-point operations problems. I'm especially worried about variable orbit.period, which is double and not fixed.