YoVDO

Implementing Elastic Collisions in JavaScript - Coding Challenge 184

Offered By: Coding Train via YouTube

Tags

Javascript Courses Game Development Courses p5.js Courses Momentum Courses Visual Programming Courses Particle Systems Courses Kinetic Energy Courses Collision Detection Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the mathematics and implementation of idealized elastic collisions in a JavaScript physics simulation using p5.js. Dive into the intricacies of collision detection and resolution without relying on third-party physics libraries. Learn how to calculate momentum, kinetic energy, and the line of impact between colliding circles. Follow along as the code is developed step-by-step, from basic collision detection to optimizing for multiple particles. Gain insights into the underlying physics principles and their practical application in programming. Perfect for those interested in game development, physics simulations, or enhancing their JavaScript and p5.js skills.

Syllabus

Introduction
The Nature of Code book
Review background material
Collision Resolution
Start Coding
Add collide function
Momentum and kinetic energy
Line of impact
Add the formulas
Simplify the code
Check for overlap
Check the particle's kinetic enery
Fix error
Add more particles
Optimizations
Outro


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