Two Cams, Two Zooms, One Position

Is there an obvious, easy way to get the equivalent in spaces, positions of two cameras, meaning… I have two cameras, one main, one HUD. They point in the same direction and live in the same position, but have different zooms. I want to use the position of my coin HUD ( HUD cam), and move any collected coin to its position. The trick is, with the different zoom levels, this visually does not work.

So, what I am saying is, tho the HUD may be at 1,0, and looks perfect in the HUD cam, a coin, in main cam, moved to 1, 0, does not line up correctly as due to the different zoom level, the coin appears not in the same position as HUD.

Anyone have any ideas?

yeah, use these… on your 2 cameras, you can translate between screen and word points for both of your cameras.

cam.ScreenToWorldPoint
cam.WorldToScreenPoint

for example, you can take a real world item point, and calculate the screen point for either camera.
or take a hud/screen item point, translate it to the world, then back to the screen point for the other camera
:slight_smile:

Of course.
I never thought of that. Cheers.