Pin down more of the logic for flight control.

This commit is contained in:
2021-07-19 00:54:32 -04:00
parent 5b9da6f0f1
commit 34ddc42b37
5 changed files with 78 additions and 17 deletions

6
lib/navigation.ks Normal file

@ -0,0 +1,6 @@
@lazyglobal off.
function GetPitch {
parameter v is SHIP:FACING:FOREVECTOR.
return 90 - vectorangle(SHIP:UP:FOREVECTOR, v).
}