🕛
Sunday / Mar 16th, 20253/16/2025

Simple Pendulum Simulation

Topics

pendulum,angular motion,
Nebula logo

Choo choo! In this challenge, I build on chapter 3 (Oscillating Motion) of the Nature of Code series and simulate a simple pendulum in p5.js via angular acceleration.

  • Editing

    by Mathieu Blanchette

  • Animations

    by Jason Heglund

Passenger Showcase

The Showcase is collection of projects created by viewers like you!

Have you made something? Please share your work!

Try a challenge!

Suggested by the video you're watching

"Double Pendulum" challenge

In this coding challenge, I create a double pendulum simulation in Processing.

"Spring Forces" challenge

Boing! Time to simulate a spring force! This challenge fits into chapters 2 and 3 of the Nature of Code and demonstrates how to simulate the oscillating motion of a spring using vectors and forces.