#Problem with camera stuttering while flollowing player

1 messages · Page 1 of 1 (latest)

stoic quarry
lyric steeple
#

!code

copper skyBOT
lyric steeple
#

put your camera code in LateUpdate so it can react to changes in the player's position in the current frame

bright oak
#

The camera follow script is likely causing it. The player moves so slowly that with a delayed camera follow it's going to bounce between 1 and 0 pixels behind the player

stoic quarry
compact breach
stoic quarry
#

@lyric steeple I tried, but it didt change anything

compact breach
#

If you're using a Rigidbody make sure it has interpolation enabled and that your code doesn't modify the transform directly at any point

stoic quarry
#

thank you I will test that

stoic quarry
#

nothing but thats not what I want

#

the grass looks better but the player stutter is still there

bright oak
stoic quarry
#

the camera movement from the first clip in the chat

bright oak
#

Ok but what do you not want from the second clip?

stoic quarry
#

I just wanted to show what it looks like when I disable the custom camera movement that I built

#

wait I just saw that the last clip is the same as the one before

#

my problem is that the player glitches between 2 pixels back and forth

compact breach
stoic quarry
#

my code is probably messy because I only recently started coding