Camera follow jerk issue solution in unity3d

Subscribers:
1,110
Published on ● Video Link: https://www.youtube.com/watch?v=_497Sqv5cqk



Game:
Unreal (1998)
Duration: 1:36
42 views
4


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


2022-10-04Set range of variable in unity C#| Learn unity coding
2022-10-03Add header and space over variable in inspector unity tutorial
2022-10-02Solved Texture stretching issue in unity easy tutorial
2022-09-29Sensor based door open/close unity tutorial | Slide door using sensor in unity3d
2022-09-27Show private variable in inspector and hide public in inspector unity3d
2022-09-25Play Pause Audio in unity3d
2022-09-22Solved Lens flare not visible in camera or game issue in unity| Flare layer in unity
2022-09-21Highlight selected button in unity easy tutorial
2022-09-18Change default cursor detailed video tutorial in unity|#unity
2022-09-15Solved You uploaded a debuggable APK or Android App Bundle unity
2022-09-14Camera follow jerk issue solution in unity3d
2022-09-13Find and change shortcut keys in unity tutorial | Shotcut keys in unity
2022-09-12Detect Button is held or being pressed in unity easy tutorial
2022-09-11Make world UI always always look at camera unity tutorial | Rotate gameObject towards camera unity
2022-09-04Effect all ui elements in group using Canvas Group unity| Canvas Group in unity
2022-09-04Attach trailer with truck using joints in unity3d
2022-08-31Balance rigidbody in unity3d | Balance rigidbody character from fall on hitting unity
2022-08-31When your game character is too much down to earth
2022-08-29Develop sun in unity3d | Add custom sun in unity3d | Lens flare in unity3d
2022-08-28Enable hinge joint and car door physics on collision unity3d | Simple car hit effect in unity3d
2022-08-27GTA like car doors effect in unity3d | Unity door physics | Hinge joint in unity



Tags:
unity
unity3d
learn unity
unity tutorisl
camera follow jerk issue in unity
camera follow jerk isuue in unity3d
camera follow jerk issue solution in unity3d



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.