Рет қаралды 398,249
In this multi-part coding challenge, I demonstrate how to implement kinematics in Processing (Java). Code: thecodingtrain.com/challenges...
p5.js Web Editor Sketches:
🕹️ Kinematics - Part 1: editor.p5js.org/codingtrain/s...
🕹️ Kinematics - Part 2: editor.p5js.org/codingtrain/s...
🕹️ Kinematics - Part 3: editor.p5js.org/codingtrain/s...
🕹️ Kinematics - Part 4: editor.p5js.org/codingtrain/s...
Other Parts of this Challenge:
📺 Part 1: Forward Kinematics: • Coding Challenge #64.1...
📺 Part 3: Inverse Kinematics - Fixed Point: • Coding Challenge #64.3...
📺 Part 4: Inverse Kinematics - Multiple: • Coding Challenge #64.4...
🎥 Previous video: • Coding Challenge #63.1...
🎥 Next video: • Coding Challenge #65.1...
🎥 All videos: • Coding Challenges
References:
🗄 Kinematics on Wikipedia: en.wikipedia.org/wiki/Kinematics
Videos:
🎥 Polar Coordinates: • 3.4 Polar Coordinates ...
🎥 Interactive Fish Aquarium Desktop Wallpaper: • Interactive Fish Aquar...
🎥 Coding Math on KZbin: / codingmath
🔴 Livestream Archive: • Live Stream #86: More ...
Related Coding Challenges:
🚂 #3 The Snake Game: • Coding Challenge #3: T...
🚂 #111 Animated Sprites: • Coding Challenge #111:...
Timestamps:
0:00 What is the difference between forward and inverse kinematics?
3:15 Let's Code!
4:15 Segment class
8:46 Have the segment follow the mouse
11:12 Use heading() to find the angle
13:17 Move the segment to the mouse
20:30 Add a connected segment
22:05 Segment 2 follows the mouse
23:15 Add a linked list
25:52 The last segement is the "tentacle"
27:28 Add a child
29:00 Overload the follow function
34:00 Map the index to the strokeWeight of each segment
36:00 Conclusion and suggestions for variations
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/guides/pas...
🚩 Suggest Topics: github.com/CodingTrain/Sugges...
💡 GitHub: github.com/CodingTrain
💬 Discord: / discord
💖 Membership: kzbin.infojoin
🛒 Store: standard.tv/codingtrain
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecod...
#forwardkinematics #inversekinematics #tentacleanimation #linkedlists #arrays #processing