I need an algorithm for this for my game and I can't seem to figure it out. When my player gets closer to the gameobject, the size of the object should decrease. When the player gets further away, the size of the object should increase. In the end, what I am actually trying to do is have it so that the gameobject is always touching the player (by getting larger or smaller). BONUS: If I can also make the gameobject rotate to always face the player that would be a plus.