BrettRyland / BDArmory

Gun turrets and other weapon systems for KSP
35 stars 25 forks source link

Orbital AI Update #581

Closed josuenos closed 11 months ago

josuenos commented 12 months ago
josuenos commented 11 months ago

The assignedPositionGeo vs assignedPositionWorld thing is weird and needs debugging more. assignedPositionGeo should be giving (lat, lon, alt) coords, which don't make sense to combine with vessel.transform.position coords (which are worldspace coords). One reason it might appear to be working is that the floating origin for fast-moving vessels is almost always centred on the vessel, so assignedPositionGeo - vessel.transform.position is actually just assignedPositionGeo and that's somehow giving an appropriate direction if it appears to be behaving correctly.

I figured this out, it's fixed in 9ed2452.