hello again,
i’m trying to script the camera for my game. The only thing left to fix is that the camera is quite jerky. Im pretty sure this is because i have the camera move towards a target point using vector3.Lerp, but since the target position is moving, this would cause the lerp equation to be off?
right now, im using the method of saving the camera position in var lastPosition and then moving to my wanted position and then saving that as var targetPosition. Then i do vector3.lerp(lastPosition, targetPosition, Time.deltaTime * damp).
keep in mind, the targetPosition is never the same as it was the last frame. this is what seems to be the problem.
thanks in advanced ![]()