Profile image

Funky trees help with rotation limit for air to air turret

20.7k JessaLeih  3.7 years ago

Looking for a funky trees equation that limits turret to a desired degree of elevation and translation, I recently made a successful air to air turret that works very well, but i want to limit how much it rotates, as of now it's capable of aiming anywhere at any orientation, even aiming right through the fuselage.

  • Log in to leave a comment
  • Profile image
    20.7k JessaLeih

    @WarHawk95 thanks! I'll try that!

    3.7 years ago
  • Profile image
    34.9k WarHawk95

    Maybe clamp the min and max of the input ?
    Function : clamp(x, min, max) (x clamped between min and max)
    So basically x is your custom input and min, max are the max rotational values you want

    +2 3.7 years ago