Makes sense, You could also optimize it by only calculating it only when locking the light on place, since ball cannot move while light moves. Thanks for the extra info tho! :)