Profile image

Funky trees help with rotation limit for air to air turret

21.1k JessaLeih  4.1 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
    21.1k JessaLeih

    @WarHawk95 thanks! I'll try that!

    4.1 years ago
  • Profile image
    35.0k 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 4.1 years ago