- Home /
Question by
Jacob_Anthony · Nov 17, 2017 at 07:28 PM ·
camerarotationdrag
The solution with camera rotation which is used in most strategic games
how rotation of camera works in this types of games like cities skylines or other games where camera is used rather as representation of player in world, kind of like a god. It isn't only rotation because when player drag camera (usually with right click) there occurs also change in position. So how it works? Is it kind of rotation around pivot placed by mouse or what? I don't ask for exact solution in code but a hint how this types of action on camera are handled.
Comment
Answer by GianBert · Nov 18, 2017 at 09:02 AM
You can create a main camera and with a script on it you can drag or nove camera with input.getkeydown or input.getbuttondown