Update functions/physicalfunctions.js