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.
@WarHawk95 thanks! I'll try that!
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