5.11: Applying forces in Box2D - The Nature of Code

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



Duration: 8:18
12,974 views
186


This video demonstrates how to apply forces to objects in Box2D. Simple wind and gravitational attraction are demonstrated.

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

https://github.com/shiffman/The-Nature-of-Code-Examples/tree/master/Processing/chp5_physicslibraries/box2d/Exercise_5_10_ApplyForceSimpleWind
https://github.com/shiffman/The-Nature-of-Code-Examples/tree/master/Processing/chp5_physicslibraries/box2d/Exercise_5_10_ApplyForceAttractMouse
https://github.com/shiffman/The-Nature-of-Code-Examples/tree/master/Processing/chp5_physicslibraries/box2d/Exercise_5_10_AttractionApplyForce

Help us caption & translate this video!

http://amara.org/v/Qbvq/

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




Other Videos By The Coding Train


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.7: Complex Shapes in Box2D - The Nature of Code
2015-08-065.12: Collision Events in Box2D - The Nature of Code
2015-08-065.11: Applying forces in Box2D - 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
2015-08-034.8: Applying forces to a Particle System - The Nature of Code
2015-08-034.9: Using Image Textures with Particles - The Nature of Code
2015-08-024.2: ArrayLists in Processing - The Nature of Code
2015-08-024.3: Deleting objects from ArrayList - The Nature of Code



Tags:
nature of code
processing.org
physics
box2d
forces