Setting perspective camera origin
Hi Everyone,
I've just recently started trying to port a card game I originally started making in LibGDX over into Unity but have run into an issue with getting perspective cameras to behave the way I want.
In the above image the red lines are on x=0 y=0 and the blue is at y=-3
The top set of cards (the ones on the red line at x=0) show the layout I am trying to achieve at an arbitrary Y value (i.e. I would like to have this layout regardless of where I position this layout of cards)
The cards on the blue line show the layout I cam currently getting when positioning the cards at a non 0 Y value.
Cards are just positioned on the Z index to provide depth.
To solve this in LibGDX I changed my viewport to be much larger on the Y axis than the actual screen size which effectively placed x=0 at a lower point on the screen (and truncated the bottom of the viewport)
My question to everyone here is, is there a way to set the origin of a perspective camera so that the camera is centered at a different point on the screen? I've tried messing with the transform of the camera but that just effectively moves where on the screen the cards are being rendered.
Alternatively, does anyone have any suggestions of other ways to achieve this effective without having to mess with a perspective camera? I feel like there should be a way to calculate the scale a card should be based on its z value whilst using a orthographic camera but I haven't had much luck in coming up with anything. Aside from this effect I don't really need to touch the 3D side of things for the rest of my game so being able to avoid the added complexities of dealing with a perspective camera would be amazing.
Thanks for any help that anyone can give