I've been learning Kos for a couple days and have started on a docking autopilot but I cant get the target:facing:inverse function to work so I made it add 180 degrees to the targets pitch and yaw and then used mod to get the inverse but its like the program stops adding 180 to the angles idk why is this a bug or am I just stupid?
My code looks like this
Until false {
Set pt to ((target:facing:pitch) + 180).
Set yt to ((target:facing:yaw) + 180).
Set pm to mod (pt,360).
Set ym to mod(yt,360).
Lock steering to r (pm,ym,0).
}
Edit:
I am infact an idiot your supposed to inverse either the pitch or the yaw not both... Lol I was just doing the equivalent of 360 degree turn