I am making a game with canvas, and I have a looping animated road that the player will appear to be moving down,
If I want other elements like enemies to appear to be standing on that road I need them to ease-in their scale and position towards the camera to match the perspective.
If I know the degree the road as been stretched from top to bottom is there some clever trigonometry solution to figure out the easing rate and sell the effect? thanks.