Update physics functions and ANN controller