How can I calculate or get the farthest X-Value of a Viewport during gameplay?
Say a model is moving in from the right-hand side (beyond Viewport) and starting from a certain X-Value it is visible on the viewport. I'd like get that certain X-Value.
But the more I zoom out (Z-Axis) the greater the farthest visible X gets (Max X). How could I approach this?
Z
of the model. Or rather, maxX
is a function ofZ
. \$\endgroup\$