Hi there, I’m a scenery developer and I’m very new to development in this field. I’m trying to spawn in a stationary object a few meters away from my aircraft, which is toggled by some externel app, or in-sim.
I’d really appreciate if someone could help me get started.
Calculate the relative position based on your aircraft‘s current position, the desired bearing and distance.
The required trigometric math is relatively straight-forward to implement: the haversine formula calculates the distance between two given points on a (perfect) sphere, the inverse formula calculates a relative point, given a source point, distance and bearing: