Replaced int by float for world physics (allow subpixelic movement) and refactor