I need to get all colliders from point(pos) with radius half of Screen.width with different screen resolution. How can I give these parameters (pos and radius) to this function?
First, gmfy, EDIT your posts instead of creating new ones within mere seconds-minutes of each other.
Second, please post a screenshot of your Profiler to depict the performance difference you’re seeing. If you’re not looking at the Physics profiler section and just at framerate, remember that resolution effects mainly render-time.
To the OP, Physics is virtual and shouldn’t be effected at all by resolution. Your physics should be effected by “world” not by “screen”. Even if I’m peering through a tiny window at your game world, your explosion should have the same effect.
That said, I would need an elaboration of your situation/issue to give a better answer. It seems you’re already aware of Screen.width, so I’m not sure why you’d have issues using it to calculate your radius.
It happened to me and what you have to do is use Time.deltaTime. When reducing the resolution, the FPS increase so the code where you use (for example) an AddForce will be executed more times than in a lower FrameRate