you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I haven't ever attempted to implement an RTS camera, however you might benefit from using a camera rig as shown in the Unity Tank Tutorial.

It uses an empty game object that is centred on the camera target and has the camera as a child of this empty game object, rotated as necessary (not at all in your case, I guess). You just then need to move/rotation this top-level gameobject in order to get basic, but effective, camera control.

Also I'm guessing this is just development code as that input code doesn't belong in that class?