Coding Challenge #62.2: Plinko with Matter.js Part 2

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


Other Parts of this Challenge:

References:

Videos:

Related Coding Challenges:

Timestamps:
0:00 Plinko Part 2
1:30 Add gravity
2:11 Add a Boundary object
6:00 Remove particles that go off screen
11:18 Debug to make sure code is working
13:31 Add buckets
19:11 Conclusion and improvements

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

#collisiondetection #matterjs #physicsengine2d #plinko #javascript #p5js #matterjs
Рекомендации по теме
Комментарии
Автор

10:28 the reason it froze is because you stopped removing it from your array, but still decreased i by 1. The loop then incremented i so you were back to the same element and it kept repeating the loop for that same element.

alexsawyer
Автор

you could randomize the results by varying the gravity each frame between two bounds

Besmudged
Автор

16:42 wow hahahaha I didn't exepect that you have a lot of stuff in your studio :')

ElPoderDeLaR
Автор

At 10:40 it was frozen because you had commented out the array splice but you were still decrementing the loop index, so the loop was stuck on that element forever.

tshddx
Автор

Why does the first one take a different path than the rest?

tamerius
Автор

Love these Dan! Your train will never slow down!!

lucarodas
Автор

17:51
Oh god! The world is moving! Save yourselves!

EnergiaRocket
Автор

Hi from Paraguay Daniel. A first year student of Engineering here. great content as always

rubenspooky
Автор

Amazing how the text/code bind this looks like a "printout" from the 1980's computer magazines... libraries are amazing.

TrollingAround
Автор

you could just check if greater then you height since even off screen it will fall downwards

jasminedeath
Автор

This is so so awesome :D Penny arcade, basically! Also I think the grid structure with the falling balls is called a Galton Board.
I think the pegs need to be spaced just slightly wider than the width of the plinkos themselves, that'll held stall their fall a bit.

azyfloof
Автор

Please do a tutorial on matter.js feature of masking / grouping bodies for collision detection !

OLApplin
Автор

Hi anyone can Suggest
hi coding train is there any way to get our Plinko ball in the desired bucket whichever I want ..for every single plink ball and it seems to be random at the same times ...please provide any suggestion or solution

Thanks in Advance

mayankparashar
Автор

I am wondering if you would be doing coding challenges in other programming languages? For example, in Crystal programming language?

supLOL
Автор

You're really smart! :P Hi from The Netherlands! :D

YourNightmar
Автор

I LOVE all your video's they are amazing and so interesting! Is your job programming?

tyreiqdow
Автор

Particles trajectory is super consistent in my simulation, do you know why??

FredoCorleone
Автор

Hi @The Coding Train, Is there a way to load an image on to replace the plain colored ball?

jhn
Автор

Amazing video series :) Thank you for your coment in my video :)

CarlinoGonzalez
Автор

🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉
Hi anyone can Suggest
hi coding train is there any way to get our Plinko ball in the desired bucket whichever I want ..for every single plink ball and it seems to be random at the same times ...please provide any suggestion or solution

Thanks in Advance

mayankparashar