Profile image

Funky trees help with rotation limit for air to air turret

20.4k JessaLeih  3.3 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.4k JessaLeih

    @WarHawk95 thanks! I'll try that!

    3.3 years ago
  • Profile image
    34.8k 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

    +1 3.3 years ago