- Home /
Mobile camera smooth
Hi, I'm trying to do a simple 2d game for mobile platform (Android and iOS) and I'm having a problem with camera smooth movement. I want to create a menu with a planet in the center of the 3d space and all the various submenus around it. The camera needs to move smoothly between two submenus, for example from the bottom to the top. The code that I use to move the camera can be found at this link. The problem that arises is that the camera is jittering when I'm trying to move it smoothly with an animation like Lerp or similar things. I created two videos with two different methods that I used:
In the videos' description there is a link with the code used.
As you can see the camera lags pretty much, but the FPS is very stable up to 30. I tried to use MoveToward, Lerp and set the movement in LaterUpdate. The last one is useless because I don't use any rigid body in the scene, but I move the camera manually.
Thanks a lot!