|
Post by justus on Dec 17, 2020 9:14:14 GMT
Hi! I faced an issue regarding jittering of sprites in runtime.
When Pro Camera 2D runs in Late Update Player Sprite jitters but Background Sprites is smooth
When Pro Camera 2D runs in Fixed Update Background Sprites jitters but Player Sprite is smooth
Player Script My player movement script is ran in Update and contains a simple movement. rigidbody.velocity = new Vector2(moveSpeed * Time.deltaTime, rigidbody.velocity.y);
Things I have tried - Changing player script to FixedUpdate, but it didnt resolve the issue.
Anyone experiencing the same issue or have found the solution to resolving this? Thank you so much!
|
|
|
Post by Luís Pedro Fonseca on Dec 17, 2020 9:35:38 GMT
Hi justus, If your player code is changing the rigidbody (physics), it should be ran on FixedUpdate. As such, your ProCamera2D should be set to FixedUpdate as well.
|
|