Converting from world to model coordinates

Disclaimer: this might totally not work