Home Game Development unity – how you can change the size of the planet in line with distance

unity – how you can change the size of the planet in line with distance

0
unity – how you can change the size of the planet in line with distance

[ad_1]

I’m making a prototype recreation about house exploration and I’ve the next state of affairs:

you’re contained in the ship heading in direction of a planet that’s far-off, as you method, the planet will increase in dimension.
if you happen to transfer away from the planet it shrinks in dimension

the issue is that I do not know how you can improve and reduce the dimensions of the planet based mostly on the space between it and the ship.

I’ve tried a number of methods however I have not been in a position to get any to work.

Does anybody have any materials explaining this relationship between dimension and distance or might anybody inform me how this downside might be solved?

thanks a lot.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here