-
Notifications
You must be signed in to change notification settings - Fork 120
Add 184-elastic collisions challenge #1655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
df451a6
Create index.json
kfahn22 36763d1
Add 184-elastic-collisions
kfahn22 140ed5c
add links to papers
kfahn22 4b9ccb9
add link to NOC site.
kfahn22 2523491
update description of link
dipamsen 6b3f782
fix topic
dipamsen 0701967
update description for collisions challenge
shiffman ee43d14
july 12
shiffman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
89 changes: 89 additions & 0 deletions
89
content/videos/challenges/184-elastic-collisions/index.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
"title": "Elastic Collisions", | ||
"videoNumber": "184", | ||
"description": "", | ||
"videoId": "", | ||
"nebulaSlug": "codingtrain-coding-challenge-184-elastic-collisions", | ||
"date": "2024-07-12", | ||
"languages": ["p5.js", "JavaScript"], | ||
"topics": ["elastic collisions", "physic's simulation"], | ||
"canContribute": true, | ||
"relatedChallenges": ["67-pong", "98-quadtree", "139-calculating-digits-of-pi-with-collisions", "176-buffon-needle"], | ||
"timestamps": [ | ||
{ "time": "0:00", "title": "Introduction" }, | ||
{ "time": "0:20", "title": "The Nature of Code book" }, | ||
{ "time": "1:22", "title": "Review background material" }, | ||
{ "time": "4:15", "title": "Collision Resolution" }, | ||
{ "time": "5:42", "title": "Start Coding" }, | ||
{ "time": "8:48", "title": "Add collide function" }, | ||
{ "time": "10:17", "title": "Momentum and kinetic energy" }, | ||
{ "time": "14:15", "title": "Line of impact" }, | ||
{ "time": "16:44", "title": "Add the formulas" }, | ||
{ "time": "21:25", "title": "Simplify the code" }, | ||
{ "time": "22:57", "title": "Check for overlap" }, | ||
{ "time": "24:31", "title": "Check the particle's kinetic enery" }, | ||
{ "time": "25:48", "title": "Fix error" }, | ||
{ "time": "27:30", "title": "Add more particles" }, | ||
{ "time": "30:11", "title": "Optimizations" }, | ||
{ "time": "30:50", "title": "Outro" } | ||
], | ||
"codeExamples": [ | ||
{ | ||
"title": "Elastic Collisions", | ||
"description": "Implementation of elastic collisions", | ||
"image": "img1.jpg", | ||
"urls": { | ||
"p5": "https://editor.p5js.org/codingtrain/sketches/3DrBb8LCp" | ||
} | ||
}, | ||
{ | ||
"title": "Elastic Collisions - Quadtree", | ||
"description": "Optimization with quadtree algorithm", | ||
"image": "img2.jpg", | ||
"urls": { | ||
"p5": "https://editor.p5js.org/codingtrain/sketches/z8n19RFz9" | ||
} | ||
} | ||
], | ||
"groupLinks": [ | ||
{ | ||
"title": "References", | ||
"links": [ | ||
{ | ||
"icon": "🔗", | ||
"title": "The Nature of Code", | ||
"url": "https://nostarch.com/nature-code", | ||
"description": "The Nature of Code book (2024 p5.js edition) is now available for pre-order!" | ||
}, | ||
{ | ||
"icon": "🔗", | ||
"title": "Elastic Collision", | ||
"url": "https://en.wikipedia.org/wiki/Elastic_collision", | ||
"description": "Wikipedia article discussing elastic collisions." | ||
}, | ||
{ | ||
"icon": "🔗", | ||
"title": "2-Dimensional Elastic Collisions without Trigonometry", | ||
"url": "https://www.vobarian.com/collisions/2dcollisions2.pdf", | ||
"description": "Introduction to solving collisions without complicated trigonometry." | ||
}, | ||
{ | ||
"icon": "🔗", | ||
"title": "Elastic Collisions", | ||
"url": "https://dipamsen.github.io/notebook/collisions.pdf", | ||
"description": "Dipam Sen's paper on elastic collisions" | ||
} | ||
] | ||
} | ||
], | ||
"credits": [ | ||
{ | ||
"title": "Editing", | ||
"name": "Mathieu Blanchette" | ||
}, | ||
{ | ||
"title": "Animations", | ||
"name": "Jason Heglund" | ||
} | ||
] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.