Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive into a 29-minute coding challenge focused on creating a soft body physics simulation for a character using toxiclibs.js and p5.js. Learn about physics libraries, elements in ToxicLibs, and start coding by implementing object destructuring, adding gravity, and incorporating elements into the world. Explore updating the physics world, adding springs, and refactoring code. Delve into inheritance concepts, create a super class, and adjust spring lengths. Discover how to create a closed-filled shape to draw the character and receive suggestions for variations. Gain insights into other types of springs and get an update on the Nature of Code book. Access provided code examples, references, and related challenges to enhance your understanding of soft body physics in programming.
Syllabus
Introduction
Physics libraries
Elements in ToxicLibs
Start coding
Object destructuring
Add gravity
Adding elements to the world
Updating the physics world
Adding a spring
Refactor code
Inheritance
Super class
Spring length
Create a closed-filled shape to draw the character
Suggestions for variations
Other types of springs
Update about the Nature of Code book!
Outro
Taught by
The Coding Train