5.12: Collision Events in Box2D - The Nature of Code

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=pJ_M_fACtB8



Duration: 12:57
23,517 views
364


This video demonstrates how to listen for collisions and trigger events at the moment of collision in Box2D.

Read along: http://natureofcode.com/book/chapter-5-physics-libraries/#chapter05_section13

https://github.com/shiffman/The-Nature-of-Code-Examples/tree/master/Processing/chp5_physicslibraries/box2d/NOC_5_9_CollisionListening
https://github.com/shiffman/The-Nature-of-Code-Examples/tree/master/Processing/chp5_physicslibraries/box2d/CollisionListeningDeletionExercise
https://github.com/shiffman/The-Nature-of-Code-Examples/tree/master/Processing/chp5_physicslibraries/box2d/CollisionsAndControl

(Note to self: I forgot to mention how to deal with deleting/modifying the body upon collision.)

Help us caption & translate this video!

http://amara.org/v/Qbvp/

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct




Other Videos By The Coding Train


2015-08-086.3: Steering Behaviors: Arrive - The Nature of Code
2015-08-086.6: Steering Behaviors: Path Following - The Nature of Code
2015-08-086.4: Steering Behaviors: Flow FIeld Following - The Nature of Code
2015-08-086.5: Vectors: Dot Product and Scalar Projection - The Nature of Code
2015-08-086.8: Combining Steering Behaviors: Flocking - The Nature of Code
2015-08-086.1: Autonomous Agents and Steering - The Nature of Code
2015-08-075.13: What is Toxiclibs Verlet Physics? - The Nature of Code
2015-08-075.15: Connected Systems with Toxiclibs VerletPhysics - The Nature of Code
2015-08-075.14: Toxiclibs Verlet Physics Basics: Particles and Springs - The Nature of Code
2015-08-075.16: Attraction Behaviors in Toxiclibs VerletPhysics - The Nature of Code
2015-08-065.12: Collision Events in Box2D - The Nature of Code
2015-08-065.5: Adding Box2D to Processing Sketch Part 2 - The Nature of Code
2015-08-065.8: Box2D Joints: Distance Joint - The Nature of Code
2015-08-065.11: Applying forces in Box2D - The Nature of Code
2015-08-065.4: Adding Box2D to Processing Sketch Part 1 - The Nature of Code
2015-08-065.1: Introduction to Box2D - The Nature of Code
2015-08-065.9: Box2D Joints: Revolute Joint - The Nature of Code
2015-08-065.2: What makes up a Box2D world? - The Nature of Code
2015-08-065.10: User Controlled Objects: Mouse Joint and Kinematic Type - The Nature of Code
2015-08-065.3: Box2D Coordinates and Vectors - The Nature of Code
2015-08-065.6: Static Bodies and Chain Shapes in Box2D - The Nature of Code



Tags:
nature of code
processing.org
physics
box2d
collision
contact