Camera follow with slight delay

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Di_Pasch

Hello all!

We are working on a small project with our school, it is a 3D SideScroller in which the player moves as if he was in a 2D game.

Right now the camera is a child of the player and has no script attached, so the camera follows the player which always stays in the center of the screen.

We would like to make the camera follow the player but with a slight delay and hopefully with a very slight “bounciness” to make the movement much more natural.

I saw that in 2D, you can set a drag margin which has this desired effect, any leads for 3D?

Many thanks!

:bust_in_silhouette: Reply From: kidscancode

You can get this behavior by using InterpolatedCamera instead of the standard one.

Thank you very much, with a little tweak the interpolated camera works wonders!

Di_Pasch | 2019-03-21 19:46