Advertisement
wirawafiy1

Ai

Jun 4th, 2023 (edited)
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. lock steering to heading(90, 90).
  2.  
  3. until false {
  4. set targetAltitude to 1000.
  5. set targetHeading to 90.
  6.  
  7. set currentAltitude to ship:altitude.
  8. set currentHeading to ship:heading.
  9.  
  10. set pitchError to targetAltitude - currentAltitude.
  11. set pitch to 0.2 * pitchError.
  12.  
  13. set headingError to targetHeading - currentHeading.
  14. set heading to 0.2 * headingError.
  15.  
  16. set steering:pitch to pitch.
  17. set steering:yaw to heading.
  18.  
  19. wait 0.1.
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement