Guest User

Untitled

a guest
Nov 21st, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. t_0 = angleDifference(planetStartAngle, atan2(shipStartPosition - orbitCenter))
  2. if(t_0 < 0)
  3. t_0 += 2 * pi
  4.  
  5. p = length(shipStartPosition - orbitCenter)/orbitRadius
  6.  
  7. s = shipSpeed * 2 * pi / (planetAngularSpeed * orbitRadius)
Add Comment
Please, Sign In to add comment