instead of doing the alpha as 0.01, use 0.01 * (dt * 60)
so it changes depending on fps. always use dt * 60 in your alpha’s and never change it, only change 0.01
also depending on your i you sohuld cache the result of sin and cosine
also instead of doing 10^2 either define it as a variable or js type 100
no because what if a players running at 40fps on their 20yo netbook. then the dt * 60 would adjust the lerp alpha so that its as fast as if it were lerping on a 60fps machine
also players can uncap their fps to 120. simialrly the dt * 60 slows down their lerp so that it matches that of a 60fps device