Profile image

Auto-aim Inputs

7,536 Onat67  one month ago

I used some auto-aiming turrets at my last build and there is some examples for copypaste:

For 45 degree elevation
clamp((TargetElevation + rate(TargetElevation)(((1000 * sin(asin((TargetDistance * 9.81)/(pow(1000, 2)))/2))/9.81) * 2)) + (asin(((TargetDistance + rate(TargetDistance)(((1000 * sin(asin((TargetDistance * 9.81)/(pow(1000, 2)))/2))/9.81) * 2))* 9.81)/(pow(1000, 2)))/2),-10,45)/45

For 180 degree rotation
(TargetHeading - Heading + rate(TargetHeading)*(((1000 * sin(asin((TargetDistance * 9.81)/(pow(1000, 2)))/2))/9.81) * 2))/180

These are not written by me I used mahardika's builds to get them

  • Log in to leave a comment
  • Profile image
    7,536 Onat67

    @Eggplant I have seen that them become a nightmare for students at my age (:

    one month ago
  • Profile image
    33.2k TheMouse

    @Eggplant
    Good for you.

    one month ago
  • Profile image
    12.0k Eggplant

    i like trigonometry

    one month ago