ScreenToWorld and reverse as default functions

Hi,

I suggest the well known function to trade screen/world coordinates be put in the default code of Defold.
Like that, people will just have to use ScreenToWorld (vector3) and its reverse WorldToScreen (vector3).

I think it’s a so fundamental thing for most games it should be a normal Defold function.

NB. Don’t ask me why I “withdrawed” my first post. I don’t even know how I did that.

3 Likes

Yes, we should provide a function to convert a vector from one coordinate system to another. Probably a vmath function. I thought we had a feature request for this on GH but I can’t find it.

3 Likes