mmo
mmo copied to clipboard
Camera controls
Camera controls need to be working on the client.
- The camera should orbit around the player entity (LMB + Move).
- The camera should not exceed a certain amount of pitch [-160°...160°]
- Using the right mouse button will also change the character's facing and make him look into the camera's direction while also rotating the camera
- Scrolling the mouse wheel will zoom the camera closer to the player or further away from him
- The camera zoom is limited. Near limit should be the entities bounding radius * 1.5 for now. Far limit should be at least near limit * 5 for now, but should be saved in a cvar so that it can be configured during runtime. Max far limit should not exceed the size of a single map tile.