Hi,
For a RTS style overview camera, I am wondering which approach is better to handle mouse click in the game scene.
- have a very large static quad at xz plane, with a collider.
- have a large enough quad at xz plane, with a collider, that move with the camera.
All I want is to handle mouse click in the scene (xz plane). My camera is perspective and with a small FOV, I currently use ScreenPointToRay and the 2nd option to get the world point.
But with camera zoom I now have to manage the scale of the quad, which need to cover the camera view cone’s intersection with xz plane, it’s hard to calculate that without using extra rays (there is ViewportToWorldPoint but we don’t know the z “depth” beforehand).
I am wondering if I am over-engineering this? The first approach seems like a bad idea?
Thx in advance.
(PS: a side question, can someone explain to me when does a post belongs to “Editor & General Support” and when does it belongs to “General Discussion”?)