There is a connection between physics and free will. A comprehensive theory of physics that explains every single thing could, therefore, also be used to predict what you would do next. However, if such a theory was actually developed, it would be impossible to calculate the ways and extent it would impact how we think about humanity and ourselves.