I looked at this auto lock turret input. What does it mean?
Swivel: (TargetHeading - Heading + rate(TargetHeading)*(((1000 * sin(asin((TargetDistance * 9.81)/(pow(1000, 2)))/2))/9.81) * 2))/180
Elevation: clamp((TargetElevation + rate(TargetElevation)(((1350 * sin(asin((TargetDistance * 9.81)/(pow(1350, 2)))/2))/9.81) * 2)) + (asin(((TargetDistance + rate(TargetDistance)(((1350 * sin(asin((TargetDistance * 9.81)/(pow(1350, 2)))/2))/9.81) * 2))* 9.81)/(pow(1350, 2)))/2),-10,45)/45
@GabDaGamerSP hard to say exactly, my guess would be stuff like unit conversion. 1000 is common in the metric system, 9.81 m/s is the rate of acceleration of gravity, 180 is presumably the distance in degree that the turret can turn. I’m sure if you need a full breakdown you could ask whoever wrote the code by tagging them here.
@32 ok, but what do the numbers mean?
Not gonna break down this whole thing because it’s massive, but this stuff is effectively a big math function. For instance if you see TargetHeading - Heading + rate(TargetHeading) it means that the thing is attempting to point at your current target by finding which way it is and adjusting by the rate that the target is moving. I’d recommend sitting down and just reading the guide on Funky Trees all the way through , you can find it in the Useful Links section of the forum. It’s really not too bad to understand, this is coming from someone with zero programming experience other than FT.