- Home /
Question by
andav51 · Mar 07, 2015 at 06:13 PM ·
cameramousetouchcamera-movement
Use mouse to move camera along fixed axis through city scene
I have a city scene and I would like to be able to navigate through it using my mouse or touch input. To achieve this, I would like to be able to move the Main Camera along the x and z axis based on input from a mouse or touch. Clicking the left mouse button down and dragging in the scene left or right should move the camera along the x axis. Clicking and dragging up or down should move the camera along the z axis. The same applies for touch input. Also, scrolling the mouse wheel should move the camera along the z axis.
Does anyone have any ideas how to accomplish this?
Thanks.
Comment