i have built a auto-leading turret that can be used on aircraft, unfortunately it cannot correct for roll yet, and therefore is only accurate in wings level flight, and has some accuracy issues i can much more easily solve.
i have built a auto-leading turret that can be used on aircraft, unfortunately it cannot correct for roll yet, and therefore is only accurate in wings level flight, and has some accuracy issues i can much more easily solve.
To correct for roll, you'll probably need to use SenSkysh's code. The instructions are linked in the comments of this post. But basically, it requires using vector calculus and spherical coordinates.