Coding Challenge #64.2: Inverse Kinematics

Опубликовано: 17 Март 2017
на канале: The Coding Train
408,135
8.6k

In this multi-part coding challenge, I demonstrate how to implement kinematics in Processing (Java). Code: https://thecodingtrain.com/challenges...

p5.js Web Editor Sketches:
🕹️ Kinematics - Part 1: https://editor.p5js.org/codingtrain/s...
🕹️ Kinematics - Part 2: https://editor.p5js.org/codingtrain/s...
🕹️ Kinematics - Part 3: https://editor.p5js.org/codingtrain/s...
🕹️ Kinematics - Part 4: https://editor.p5js.org/codingtrain/s...

Other Parts of this Challenge:
📺 Part 1: Forward Kinematics:    • Coding Challenge #64.1: Forward Kinem...  
📺 Part 3: Inverse Kinematics - Fixed Point:    • Coding Challenge #64.3: Inverse Kinem...  
📺 Part 4: Inverse Kinematics - Multiple:    • Coding Challenge #64.4: Inverse Kinem...  

🎥 Previous video:    • Coding Challenge 63.1: Texturing Clot...  
🎥 Next video:    • Coding Challenge #65.1: Binary Search...  
🎥 All videos:    • Coding Challenges  

References:
🗄 Kinematics on Wikipedia: https://en.wikipedia.org/wiki/Kinematics

Videos:
🎥 Polar Coordinates:    • 3.4 Polar Coordinates - The Nature of...  
🎥 Interactive Fish Aquarium Desktop Wallpaper:    • Interactive Fish Aquarium Desktop Wal...  
🎥 Coding Math on Youtube:    / codingmath  
🔴 Livestream Archive:    • Live Stream #86: More Inverse Kinemat...  

Related Coding Challenges:
🚂 #3 The Snake Game:    • Coding Challenge #3: The Snake Game  
🚂 #111 Animated Sprites:    • Coding Challenge #111: Animated Sprites  

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 segment 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/pas...
🚩 Suggest Topics: https://github.com/CodingTrain/Sugges...
💡 GitHub: https://github.com/CodingTrain
💬 Discord:   / discord  
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter:   / thecodingtrain  
📸 Instagram:   / the.coding.train  

🎥 Coding Challenges:    • Coding Challenges  
🎥 Intro to Programming:    • Start learning here!  

🔗 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-o...

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod...

#forwardkinematics #inversekinematics #tentacleanimation #linkedlists #arrays #processing


Смотрите видео Coding Challenge #64.2: Inverse Kinematics онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь The Coding Train 17 Март 2017, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 408,135 раз и оно понравилось 8.6 тысяч людям.