Help with centering animation

I’m creating a sprite animation with Unity2D but it’s centered at the center rather than the feet.

For example, this is being jerky:

alt text

Whereas this is centered at the feet:

alt text

How would I go about it in Unity?

I’ve worked it out.

You have to change the Pivot in the Sprite Editor.