Download

Mimicking the Editor Alt LMB orbit in runtime

Dear all,

I was wondering if there is any easy way of mimicking the useful orbital movement in Editor (Alt-LMB) in runtime.
I have been researching on that and didn’t find an straightforward solution to it.
I mean, press Atl key and then current camera orbits around a point in the scene (that could be obtained by line tracing for example) as I move the mouse left-right, up-down
When Alt is released, the camera is back to normal WASD movement.

Any help will be beautifully welcome.
Cheers
David