Camera follow jerk issue solution in unity3d
ASSALAM o alaikum In this video we have shown how to resolve camera jerking while following any object or specifically a rigidbody .
Camera follow tutorial link:
https://www.youtube.com/watch?v=2kxOw0w6S4Y&list=PLAnGRs1yK0ADvriAwOSZiuyzaYG8Mi8Dp&index=20
Reason: It happens due to difference in frame rates as we might wrote the movements of both camera and object to follow in "Update" function
Update function can be called any number of times per second so it is possible that update in which movement of object is written is called 60 frames per second and the update in which movement of camera is written calls 55 frames per second , causing a jerk
Solution:
Set the movements of both rigidbody/object to be followed and camera in "FixedUpdate" method
/////////////////////////////////////////////////////////////////////////////////////////////
ASSALAM o alaikum
All codes and concepts and videos from this channel are non copyrighted and free to use because we believe that knowledge should be freely available for everyone
/////////////////////////////////////////////////////////////////////////////////////////////
Other Videos By Muhammad Shahzaib
Other Statistics
Unreal Statistics For Muhammad Shahzaib
At present, Muhammad Shahzaib has 379 views spread across 3 videos for Unreal, and less than an hour worth of Unreal videos were uploaded to his channel. This is 1.16% of the total watchable video on Muhammad Shahzaib's YouTube channel.