followCam.position.lerp(camLerpingPoint, 0): Since the alpha is 0, it will do nothing, it will keep followCam.position value as it is.
followCam.position.set: Will set the camera’s position to the final camLerpingPoint value, it’s more equivalent to a lerp with an alpha of 1, followCam.position.lerp(camLerpingPoint, 1);
Performance wise, set is a tiny bit faster then lerp, but it’s irrelevant here, since you can’t replace lerp with a simple set, unless it’s not a lerp.
If the alpha is 1 then yes they are equivalent, you can see it this way, 0 is the initial position, 1 is the final position, the rest is in between, and lerp stands for linear interpolation.
I suggest you initiate a discution with chatGPT or claude, it can explain it, sadly, better then me
Thanks! i had the same idea but I had to make sure.
as for the performance part, i guess i’ll take a look at the lerp source code and see how much of a performance impact it has compared to set.
I understand the use of lerp.
My use case is the Lerp multiplier is configured by the user.
So if the user passes 1, I’m thinking of doing a condition and using set instead of lerp to maximize performance.