05:015.10: User Controlled Objects: Mouse Joint and Kinematic Type - The Nature of Code
From the creator
This video shows demonstrates how to move objects in Box2D manually through the use of a mouse joint or a kinematic body type. Code: https://thecodingtrain.com/tracks/physics-libraries/physics-libraries/box2d/10-user-controlled-objects 🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/YzFpEGdsl 💻 Code Example: https://github.com/nature-of-code/noc-examples-processing/tree/master/chp05_physicslibraries/box2d/KinematicTest 🎥 Previous: https://youtu.be/SUVH8Bh4ruw 🎥 Next: https://youtu.be/bJJbQIoJeFc References: 🔗 Nature of Code: https://natureofcode.com 🔗 Nature of Code Processing Examples: https://github.com/nature-of-code/noc-examples-processing/tree/master/chp05_physicslibraries/box2d/NOC_5_5_MultiShapes 🔗 Box2D: https://box2d.org 🔗 JBox2d: https://github.com/jbox2d/jbox2d Timestamps: 0:00 Hello again 1:52 Using a mouse joint to move objects 3:31 GroundBody 4:55 Creating and destroying the mouse joint 6:05 Setting the target 6:49 Look at example code 10:40 Kinematic type objects 12:28 Things you can try 12:53 Outro Editing by Mathieu Blanchette Animations by Jason Heglund Music from Epidemic Sound 🚂 Website: https://thecodingtrain.com/ 👾 Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide 🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box 💡 GitHub: https://github.com/CodingTrain 💬 Discord: https://thecodingtrain.com/discord 💖 Membership: http://youtube.com/thecodingtrain/join 🛒 Store: https://standard.tv/c
Published 2015-08-06 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





