Unity should add a good mobile controller

unity should add a good mobile controller if we create it for start than it’s so much time and even some times it does not work joystick works but what about camera movement
it is complex to create if we have a good controller for mobile lot of time will be saved

What kind of “good mobile controller?” 2D? 3D? Airplane? On foot? First Person? Third Person? Can it sprint? Crouch? Teleport? Slide? Change to a different size? Swim? Fall from a building and skydive?

Here’s the last time they attempted to keep something like this going:

There’s plenty of other turnkey controllers out there. Here’s another random FPS one I use all the time when prototyping:

That one has run, walk, jump, slide, crouch… it’s crazy-nutty!!

Camera stuff is pretty tricky… I hear all the Kool Kids are using Cinemachine from the Unity Package Manager.

There’s even a dedicated Camera / Cinemachine area: see left panel.

If you insist on making your own camera controller, do not fiddle with camera rotation.

The simplest way to do it is to think in terms of two Vector3 points in space:

  1. where the camera is LOCATED
  2. what the camera is LOOKING at
private Vector3 WhereMyCameraIsLocated;
private Vector3 WhatMyCameraIsLookingAt;

void LateUpdate()
{
  cam.transform.position = WhereMyCameraIsLocated;
  cam.transform.LookAt( WhatMyCameraIsLookingAt);
}

Then you just need to update the above two points based on your GameObjects, no need to fiddle with rotations. As long as you move those positions smoothly, the camera will be nice and smooth as well, both positionally and rotationally.

Best way to roll a good controller is like anything: one careful step at a time, like this guy:

Imphenzia: How Did I Learn To Make Games: