Can somebody give a better explanation of this?
I understand the z-component is the distance between the camera and the object, on the z-axis.
But I don’t understand what the function actually does.
Can somebody give a better explanation of this?
I understand the z-component is the distance between the camera and the object, on the z-axis.
But I don’t understand what the function actually does.
Hi @Mitchb2,
The method ViewportToWorldPoint transforms the specified position from viewport (bottom left 0,0 / top right 1,1) space into world space (x,y,z), e.g. going from a flat point on the device to a 3D point in game.
See also;
Oh! It returns real X-Y-Z points! Thanks! I’m not sure why it didn’t make sense yesterday.
Yep.
Don’t sweat it, sometimes having a bit of break from something like tgis helps you see it more easily the next day 