I'm building a platformer game, and wants to give the feeling the "camera" is following the player. Anyone has good example how to do it?
I'm building a platformer game, and wants to give the feeling the "camera" is following the player. Anyone has good example how to do it?
I see others recommending interpolation, but that approach does not give smooth results especially after sudden changes in speed or direction.
I'd recommend implementing some simple camera physics to simulate a critically damped spring damper system. Sounds complicated but it's only a few lines of code: