test

i completely missed the documentation on the execution order on MonoBehaviours. That page is pretty informative…. would have been nice to know in the past. So even if you start a coroutine in LateUpdate it still executes before LateUpate (starting next frame of course). Also it's almost useless to use result comparison with the iterative feeding approach with Lerping where you feed the value calculated last frame into the from variable in the lerp call. The numbers you are comparing will get very, very close but never have the same value. Mathf.Approximately does not even solve the problem. Seems you either have to clamp the thing with time and just live with the error or lerp between two pre-calculated values.

Unless otherwise stated, the content of this page is licensed under GNU Free Documentation License.