Moved physics callbacks to scripts.