5.12: Collision Events in Box2D - The Nature of Code
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