Hello,
I created a player sprite and I don’t want it to move any further than camera borders are. I can get Screen.width and Screen.height values but I don’t know how to use those to reposition or make a comparison with translation.position.x nor .y nor .z. I know Screen.height and .width are integer values which we all know as pixels but i don’t know how to make a connection with xyz axis units.
How can I limit player sprite movement if I know dimensions of a screen?