To add a bit. it’s better to calculate every tick. because the movement happens every tick. you can do this