Pendulums and a Newton's cradle in After Effects

A Newton's cradle clicking back and forth, a sign swinging on its hook, a chain swaying. Faking that with a rotation expression gets the swing but not the hits. FiziFlo simulates it: every layer hangs from a real joint, gravity swings it, the balls knock into each other, and the result is baked as Position and Rotation keyframes.

The joints come from After Effects parenting, so the setup is mostly things you already know.

Five circles, each hanging from its anchor point on a fixed bar.

Step by step

  1. 1

    Draw the balls, and a null for the bar

    Five circles in a row, touching. Add a null (Layer › New › Null Object) where the bar is: a null is always a fixed pivot for FiziFlo. The bar and the strings you see can be ordinary shape layers on top; the physics doesn't need them.

  2. 2

    Move each anchor point up to the bar

    A layer swings around its anchor point, and the anchor can sit outside the layer. With the Pan Behind tool (Y), drag each ball's anchor point straight up to the bar.

  3. 3

    Parent the balls to the null

    Pick-whip each ball's Parent to the null before you build. FiziFlo reads the parenting and pins each ball at its anchor point.

  4. 4

    Build, and set it up as a cradle

    Select the balls and click Build from Selection. On each ball's body card choose the Circle collider, then set Bounciness to 100 and Joint Rigidity to 100%. (Prefer a shape layer as the bar? Select it too and click Passive on its body card, or it falls with the balls.)

  5. 5

    Lift the first ball

    Rotate the first ball out to one side; it swings from its anchor point, so it lifts along its arc. Gravity does the rest.

  6. 6

    Bake

    Click Bake Simulation and play. Clear Keyframes, adjust, bake again.

Other things that hang

  • A swinging sign: one layer, anchor point at its top edge, parented to a hook (a null, or a layer set to Passive). Tilt it before you bake, or add Wind to push it.
  • A chain or a rope: parent each link to the one above it and the top link to the hook. Same build, same bake.
  • A springy link: lower Joint Rigidity and the link stretches like a spring; Spring Decay sets how quickly that bounce settles.
  • A swing that dies down sooner: raise Air Resistance, which slows moving and spinning bodies throughout the simulation.

FAQ

Draw five touching circles and add a null where the bar is. Move each ball's anchor point up to the bar, parent the balls to the null, select the balls and click Build from Selection. Give them the Circle collider on their body cards, set Bounciness 100 and Joint Rigidity 100%, lift the first ball and bake.

FiziFlo: 2D physics for After Effects

$49 one-time, all 1.x updates included. After Effects 2022 or later, Windows and macOS. Baked keyframes render without the plugin.

Get FiziFlo