Objects will be pulled to the center of the screen as a by-product of the rotation combined with zooming, which is a useful feature itself, not something to be avoided.
You could probably get a better idea by watching any SupCom gameplay video, like this one:
It could serve as a great replacement for clicking on the minimap, also reduces the need of camera edge panning to some degree, it's aesthetically pleasing too.
Shadowfury333 tried to implement something like that for Zero-K in lua, but ran into problems:
So I think maybe it could be better implemented as an engine feature.Shadowfury333 wrote:Honestly I did the best I could manage, and I'm still not sure why it's bumpy
I set up similar code at work (industrial project, not a game), and it works perfectly
the algorithm is theoretically simple (store world-space point under cursor, zoom, rotate based on zoom, pan so that previously stored world-space point goes back under cursor), but actually executing it within Lua alongside the other 3000 lines of code for COFC turns out to not be so simple, a lot of that likely being that Spring lacks a built-in camera that can do the stuff COFC needs (free camera used to, but rotation got borked a couple years back) so almost everything mathematical is done in Lua
I realize there's also a bit of pan drift to pull the object under cursor to the center of the screen, but that's only a tiny addition to the algorithm and not the source of the bumpiness
the only hint I've ever had was that the bumpiness is framerate dependent
which kinda makes sense, since AFAIK Spring doesn't exactly have a way to get screen->world projection data without actually adjusting the camera, which IIRC happens on one of the graphical update events, and those events are FPS dependent.