I'm trying to set a script that will make a camera in unity act like a camera in a 3d mmo. All the tutorials in youtube/google failed to help me cause they all act the same. This what I need my camera to do:
- Rotate around a moving object. the object is the player. the player should not rotate with the camera (cause some script "solve" the problem by rotating the player and this is not an mmo style!)
- The camera has to follow the player at all time while the player is always in the center of the screen.
- The camera need to rotate on the x,y and not on the z(z is always zero).
- The camera should zoom in on the player when the max height is reached and zoom in as well when min height is reached. same with obstacle.
- In the width rotation can do 360 degree.
- The camera doesn't need to be always at the back (should not return unless I moved my mouse to this position).
Unity cinemachine did not solve my problem cause it is always going orbit to the back of my player and not just following it while orbit. An example of the camera the best example is like GW2 / cube world.(alhpa version)
If someone here can solve my problem I will really appreciate it.
Thank you!