Hello!
I have an object that randomly tweens its position forever, so dealing with X Y Z.
I arbitrarily have each of those values randomized from -5 to 5, this works great for the test window that I am working on. But I would now like this to know where the bounds of the screen / camera are, and instead of passing in the arbitrary -5 and 5, have those values basically be related to the screen / camera - so the object is always in the game view.
I did some poking around and found a function that converts the game objects position to screen coordinates, but I kind of need the opposite I guess? I need to get the screen size and have that converted to the values to pass to the tween I think?
Thanks guys!