Coding Challenge #64.2: Inverse Kinematics

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



Duration: 36:45
383,392 views
8,060


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 1: Forward Kinematics: https://youtu.be/xXjRlEr7AGk
πŸ“Ί 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 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: 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







Tags:
JavaScript (Programming Language)
live
programming
daniel shiffman
creative coding
coding challenge
tutorial
coding
challenges
coding train
the coding train
tentacle coding
arm coding
robat arm coding
forward kinematics
kinematics
inverse kinematics
kinematics processing
processing
processing java
kinematics array
tentacle animation
kinematics java