So, I have this ball turret. Simple thing, just two rotators and a few guns. So, I was wondering if there was a way to use Funkytrees to make it aim at a target, maybe fire at the target by itself. If you have any ideas or code I could take a look at, that would be greatly appreciated.
Yeah!
For rotation
(TargetHeading - Heading+ rate(TargetHeading)*(((800 * sin(asin((TargetDistance * 9.81)/(pow(800, 2)))/2))/9.81) * 2))/180
For pitch
clamp((TargetElevation + rate(TargetElevation)(((2000 * sin(asin((TargetDistance * 9.81)/(pow(2000, 2)))/2))/9.81) * 2)) + (asin(((TargetDistance + rate(TargetDistance)(((2000 * sin(asin((TargetDistance * 9.81)/(pow(2000, 2)))/2))/9.81) * 2))* 9.81)/(pow(2000, 2)))/2),-10,45)/45
Turret ball must be upside cuz idk how to code upside down
And if the turret ball going to the opposite try inverting it
There is now a way to do it
Yeah easy
It was done at one point @Leehopard
maybe it's possible by using missiles
Yeah there’s no way of tracking other crafts, so pretty obvious no.
Pretty much impossible to make one part of the plane AI controlled and the rest under player control. Not to mention that AI doesn't even use turrets with rotators because it doesn't know how