- #1
Xcrypt
- 21
- 0
I'm programming a camera for a game, and to achieve some effect I think the best solution would be some kind of function.
What I need to achieve, is a function that:
- 'starts' at x1, with a y value of y1.
- 'ends' at x2, with a y value of y2.
- I also need some parameter to control the 'curve amount' of the graph in between x1 and x2
('starts' and 'ends' mean that only the solution for the set of x values ['start' - 'end'] matter)
Unfortunately my calculus knowledge is very limited so I hope that someone here could explain to me what the correct solution is, and/or how to get there.
What I need to achieve, is a function that:
- 'starts' at x1, with a y value of y1.
- 'ends' at x2, with a y value of y2.
- I also need some parameter to control the 'curve amount' of the graph in between x1 and x2
('starts' and 'ends' mean that only the solution for the set of x values ['start' - 'end'] matter)
Unfortunately my calculus knowledge is very limited so I hope that someone here could explain to me what the correct solution is, and/or how to get there.