Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t_0 = angleDifference(planetStartAngle, atan2(shipStartPosition - orbitCenter))
- if(t_0 < 0)
- t_0 += 2 * pi
- p = length(shipStartPosition - orbitCenter)/orbitRadius
- s = shipSpeed * 2 * pi / (planetAngularSpeed * orbitRadius)
Add Comment
Please, Sign In to add comment