Hi there, so let’s say my character rotates with left and right arrow at 150°/sec, I wanna rotate the camera too, so the gameplay overall feels more alive and to increase the chance of players to get lost.
Hi,
Here’s how lerp works:
Linear interpolation from A to B by X.
The expression you write in the field is: lerp(A, B, X)
where:
A - starting value (current position/angle/…)
B - ending value (desired position/angle/…)
X - speed of interpolation (higher goes faster)
Imagine there is a straight line between A and B. The value X represents how far along that line the returned value is; 0 indicates the start of that line (value A) and 1 indicates the end of that line (value B).
The X value of 0.5 is exactly the middle between A and B
The X value of 0.25 is a quarter of the way from A to B.