Hi, I have what probably boils down to a very simple maths problem. Maths is not currently my strong point though.
I have two sets of values that need to be considered, the cameras field of view, which is clamped between 15 - 30.
And the cameras Y position which needs to be altered based on the field of view to be between 3 - 0 respectively.
So if the field of view is at 15, the cameras y position clamp will need to be 3, if the field of view is 20 the y will need to be 2 and so on up to the field of view of 30 where the y will need to be 0.
How would this be achieved? I think I just need a quick tip on the sort of equation that will cover this.
Thanks in advance.