Opus Motion ★ Star on GitHub

3D · brick-collapse-physics

Brick collapse physics

A built brick tower creaks, tips about its base edge and breaks into independent bricks that bounce with restitution 0.3 and settle flat; the camera shakes on impact and tilts down to the rubble. Deterministic pre-simulated rigid bodies, bricks stepped at 12 fps.

A free, MIT-licensed 3D motion graphic from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Brick collapse physics: three frames of the 3D motion graphic, start, middle and end
Brick collapse physics — start, middle and end of the 5.5-second motion.

What Brick collapse physics is for

Failure / pivot beats, "break it to rebuild it", playful destruction before a rebuild.

  • bricks
  • toy
  • collapse
  • physics
  • fall
  • destruction
  • tower
  • tip over
  • stop motion
  • 3d
  • failure
  • crash
  • playful

Details

Category
3D motion graphics (three.js)
Length
5.5 s (165 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
heavy (three.js / WebGL — export to video for mobile)
Transparent overlay
no
Seamless loop
no
Text props
caption
Colour props
palette background desk
Mood
3d, playful
Roles
subject

Use Brick collapse physics in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add brick-collapse-physics --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render brick-collapse-physics --props '{"caption":"Well. Back to the drawing board.","palette":["#c91a09","#f2cd37","#0055bf","#f2f2ee"],"background":"#cfd4d8","desk":"#9b958c"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export brick-collapse-physics --as mp4 --props '{"caption":"Well. Back to the drawing board.","palette":["#c91a09","#f2cd37","#0055bf","#f2f2ee"],"background":"#cfd4d8","desk":"#9b958c"}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="brick-collapse-physics"
  props={{
    caption: 'Well. Back to the drawing board.',
    palette: ['#c91a09', '#f2cd37', '#0055bf', '#f2f2ee'],
    background: '#cfd4d8',
    desk: '#9b958c',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="brick-collapse-physics"
  props='{"caption":"Well. Back to the drawing board.","palette":["#c91a09","#f2cd37","#0055bf","#f2f2ee"],"background":"#cfd4d8","desk":"#9b958c"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "brick-collapse-physics",
      "props": {
        "caption": "Well. Back to the drawing board.",
        "palette": [
          "#c91a09",
          "#f2cd37",
          "#0055bf",
          "#f2f2ee"
        ],
        "background": "#cfd4d8",
        "desk": "#9b958c"
      }
    }
  ]
}

Brick collapse physics props

10 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
width8tower width in studs
height10tower height in brick rows
palette["#c91a09","#f2cd37","#0055bf","#f2f2ee"]brick colours
pushAt28frame the creak/tip starts
pushDir11 = tips right, -1 = tips left
seed11brick layout + scatter seed
background"#cfd4d8"studio wall colour
desk"#9b958c"desk colour
caption"Well. Back to the drawing board."subtitle pill after the dust settles (empty = none)
stepFps12stop-motion stepping of brick movement

Notes & credits

Technique sources:

  • lemo-opuscar styles/brick-toy demo/rockets.js collapse (MIT, LemoLab)
  • analysis/sources/lemo-styles-a.md §6 brick-collapse-physics