3rd person cam - AutoCam script question

Howdy,

I’m using the Multipurpose Camera Rig that came with Unity for a 3rd person game. It works great, except I would like to remove one feature.

When the player stops moving, the camera continues rotating around to the back of the player. I would prefer not to have that, so that the camera only rotates when the player is moving.

I’m looking at the AutoCam script attached to the camera and can’t seem to figure out what to comment out or add to get the behavior I want.

If anyone cares… It’s the last 2 lines of the AutoCam script attached the Multipurpose Camera Rig that comes with a Unity install.

I just added an if (targetRigidbody.velocity.magnitute >1) before those last 2 lines and now the camera doesn’t rotate until you are moving.