Hello,
I am seeing some unexpected (to me) behavior regarding the game boundary padding on the laser defender course. I don’t like the quite generous padding that was achieved in the course by setting the padding value to 1.0f in the following code:
_yMin = gameCamera.ViewportToWorldPoint(new Vector3(0, 0, 0)).y + _padding;
_yMax = gameCamera.ViewportToWorldPoint(new Vector3(0, 1, 0)).y - _padding;
So, given it is a float value, I started decreasing the number to 0.5, 0.25, etc. However, decreasing padding had no effect whatsoever on the amount of padding in the game. So, I set the padding to 0.0f, which still achieves the exact same effect as padding at 1.0f. How does this happen? Deleting the padding results in no padding at all being applied. Why is an addition of 0 not the same as omitting the variable altogether? How can I achieve less padding than I currently have? Screenshot attached.
Thanks!