YoVDO

Spring Forces

Offered By: Coding Train via YouTube

Tags

Javascript Courses p5.js Courses Gravity Courses Vectors Courses Particle Systems Courses Hooke's Laws Courses

Course Description

Overview

Dive into a 33-minute coding challenge that simulates spring forces using vectors and oscillating motion. Learn how to implement Hooke's Law, create 1D and vector-based springs, add gravity, and control springs with mouse input. Explore particle systems, develop spring and particle classes, and connect multiple particles with springs. Refine the simulation by incorporating shape functions and discover how to create swishy, spring-based animations. Gain practical experience in applying concepts from chapters 2 and 3 of the Nature of Code, with hands-on coding examples in p5.js.

Syllabus

Choo choo!! Springs Coding Challenge!.
Explain! What is Hooke's Law?.
Code! Let's make a 1 dimensional spring!.
Explain! How can we bring in vectors?.
Code! Let's adjust the code to use vectors..
Code! Let's add gravity!.
Code! How can we control the spring with our mouse?.
Explain! But wait!! Particles!.
Copy & Paste! A particle class..
Code! Let's make bob and anchor particles..
Code! We need a spring class..
Debug! What is missing?.
It works!.
Code! But wait!! Particle system!.
Code! Let's connect the particles with springs..
Code! We can refine it a bit..
Code! Playing with beginShape() and endShape()..
Ideas! If you make a swishy robot share it with me!.


Taught by

The Coding Train

Related Courses

Games, Sensors and Media
University of California, Irvine via Coursera
Light Up Your World in Unity (Introduction to Lighting)
Coursera Project Network via Coursera
Practical Game Development in Unity 4: Level 2.1
Udemy
Desarrollo de juegos con Unreal Engine de 0 a profesional
Udemy
Advanced iOS App Development: Core Animation
LinkedIn Learning