Coding Challenge #64.1: Forward Kinematics
In this multi-part coding challenge, I demonstrate how to implement kinematics in Processing (Java). Code: https://thecodingtrain.com/challenges/64-kinematics
p5.js Web Editor Sketches:
🕹️ Kinematics - Part 1: https://editor.p5js.org/codingtrain/sketches/91Ys1PU7B
🕹️ Kinematics - Part 2: https://editor.p5js.org/codingtrain/sketches/CvGJFQPLa
🕹️ Kinematics - Part 3: https://editor.p5js.org/codingtrain/sketches/p8hH8INCv
🕹️ Kinematics - Part 4: https://editor.p5js.org/codingtrain/sketches/bNPjMWlwV
Other Parts of this Challenge:
📺 Part 2: Inverse Kinematics: https://youtu.be/hbgDqyy8bIw
📺 Part 3: Inverse Kinematics - Fixed Point: https://youtu.be/RTc6i-7N3ms
📺 Part 4: Inverse Kinematics - Multiple: https://youtu.be/10st01Z0jxc
🎥 Previous video: https://youtu.be/JunJzIe0hEo?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 Next video: https://youtu.be/ZNH0MuQ51m4?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
🗄 Kinematics on Wikipedia: https://en.wikipedia.org/wiki/Kinematics
Videos:
🎥 Polar Coordinates: https://youtu.be/O5wjXoFrau4
🎥 Interactive Fish Aquarium Desktop Wallpaper: https://youtu.be/Inpo9tpUMwE
🎥 Coding Math on Youtube: https://www.youtube.com/user/codingmath
🔴 Livestream Archive: https://youtu.be/xtFu66DZrBw
Related Coding Challenges:
🚂 #3 The Snake Game: https://youtu.be/AaGK-fj-BAM
🚂 #111 Animated Sprites: https://youtu.be/3noMeuufLZY
Timestamps:
0:00 Introducing today's topics: Forward Kinematics
3:17 Create a Segment class
9:30 Add a parent
10:24 Write a second Segment constructor
13:08 Connect the segments
15:30 Write a wiggle function
19:01 Update the segments own angle relative to parent's angle
20:01 Use noise to change the angle
21:18 Add a linked list
24:05 Add a child
29:00 Use a sine wave to adjust the angle
33:26 Adjust the length of the segments
34:06 Conclusion and next steps
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: http://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://discord.gg/hPuGy2g
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter: https://twitter.com/thecodingtrain
📸 Instagram: https://www.instagram.com/the.coding.train/
🎥 Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org
📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#forwardkinematics #inversekinematics #tentacleanimation #linkedlists #arrays #processing