Coding Challenge 177: Soft Body Physics

preview_player
Показать описание


References:

Videos:

Related Coding Challenges:

Timestamps:
0:00 Introduction
2:51 Physics libraries
5:30 Elements in ToxicLibs
5:47 Start coding
7:04 Object destructuring
8:10 Add gravity
9:00 Adding elements to the world
10:35 Updating the physics world
11:40 Adding a spring
15:23 Refactor code
18:07 Inheritance
18:57 Super class
23:31 Spring length
25:44 Create a closed-filled shape to draw the character
26:49 Suggestions for variations
27:07 Other types of springs
27:36 Update about the Nature of Code book!
28:56 Outro

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

#softbody #toxiclibs #verletphysics #p5js #javascript
Рекомендации по теме
Комментарии
Автор

Thank you for everything Daniel, you have such a wonderful soul.

yohansaba
Автор

This is the Coding Challenge video with the highest quality so far: well scripted narrative, lots of tips and logical arguments, an easy to follow and well organized code. Also, the part about how to set up the html and the imports is very appropriate. The video edition also superb.

This goes to show your experience making these videos, and also dedicating so much time to the book possibly has an impact on your story-telling style, for the better.

xnick_uy
Автор

I just started learning coding. After finding your content it is like a breath of fresh air! You make it seem so fun! The ability to do anything with a computer is really cool and powerful. Thanks for your videos.

hotrodhunk
Автор

Thank you, Daniel, your videos always make me happy!

mmilerngruppe
Автор

When I watch your videos, I feel you talk to me, not just saying something, but actually talking to me, like I'm a child. But not at all in the negative sense. Your instructions are clear, friendly and unassuming. I hope you either have kids or will some day because I'm sure they'll turn out as marvelously curious little beings.

Little bit of a weird post, I know, but this is just how I like to express my gratitude.

sambeard
Автор

This is amazing! this came in clutch when I've been researching simple way to create softbody physics. Thank you for this!

tehcakelie
Автор

I like how i can watch all coding challenges, even those from 6 years ago and litterally the only thing that changed is his hair color (and this is the best thing that could happen)

jetexeryt
Автор

So good to see you back and with another interesting challenge.

richardsymes
Автор

Daniel really is a great educator and entertainer. Thank you Sir for your videos and especially The Nature of Code where I am currently enjoying the chapter about fractals.

Sayamak
Автор

Super clear explanations. I learn something new every video watched!

niczoom
Автор

OMG you're writing a new version of the nature of code :D I have the original and its my favourite book by a mile.

RedEyedJedi
Автор

I receive every video of the Coding Train as it was a Christmas gift and I was 5 years old !
I'm so happy and excited !

wxr
Автор

Amazing! Thank you for really demystifying soft body physics. I thought it would be much more complicated than a few springs 😄

WilderPoo
Автор

Greetings from Finland! 🇫🇮 That is where you inspiration came from this time! 😉

Haapavuo
Автор

Oooh, new NoC version! Pardon my drooling here...

PeranMe
Автор

It was fun to watch, I'd definitely code my own squishie character!

kapilishere
Автор

❤❤love everything done for us and teaching in. Such a cool way❤❤❤

Parasbhattarai
Автор

I have always loved your videos! I am a novice game programmer in C# and Unity, it seems like a lot of these tools in Javascript could be expanded to make games with complex physics and graphics in the browser!

AaronAsherRandall
Автор

its been too long since a coding train video ;-; thank you!!!

chopstix
Автор

Soft body physics... my doctor has been wanting me to work on this!😉

parkeranderson