Update physicalEngine.js