My question about smooth camera movement.
When clicking on object in the scene the camera will go to pre-defined for objects view. Other Problem is Every object has different camera view.
I won’t make zoom to object.
Thank you very much.
My question about smooth camera movement.
When clicking on object in the scene the camera will go to pre-defined for objects view. Other Problem is Every object has different camera view.
I won’t make zoom to object.
Thank you very much.
If I understand correctly you have multiple fixed Camera positions and rotations and you want that, on click, it scrolls and rotates towards that? In that case you should look up Lerp and Slerp.
Vector3.Lerp(ActualCameraPosition,WantedCameraPosition,time.deltaTime);
Should look a little like this. With the ActualCameraPosition being the the transform.position of your current camera and the WantedCameraPosition being the location you want your camera to go. The last parameter is basically the speed of the movement.
Same goes for rotation but you use Quaternion.Lerp instead.