Coding Challenge #64.4: Inverse Kinematics - Multiple

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 มิ.ย. 2024
  • 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 2: Inverse Kinematics: • Coding Challenge #64.2...
    📺 Part 3: Inverse Kinematics - Fixed Point: • Coding Challenge #64.3...
    🎥 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 TH-cam: / 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 Refactoring the Code
    1:05 Create a Tentacle class
    4:05 Use Rename to change the name of the array to segments
    5:29 Add tentacles around a circle
    8:55 Add an "apple"
    10:55 Have tentacles follow the apple
    13:18 Have two tentacles "play catch" with the apple
    14:17 See you next time!
    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: th-cam.com/users/thecodingtrainjoin
    🛒 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

ความคิดเห็น • 50

  • @Thehero394
    @Thehero394 7 ปีที่แล้ว +40

    1. Like the video
    2.. watch it
    3. Respect this awesome man for his awesome videos

  • @applegravity9843
    @applegravity9843 7 ปีที่แล้ว +29

    Apples bouncing around, I really relate to this video ...

  • @Holobrine
    @Holobrine 5 ปีที่แล้ว +20

    You could restrict the angle that a segment can be from another, so they never overlap and the tentacle has some form of rigidity.

    • @eduardoalvarez6257
      @eduardoalvarez6257 3 ปีที่แล้ว +1

      How!? I'm trying to implement this idea for two days... xD

    • @Zetta1Reid0
      @Zetta1Reid0 2 ปีที่แล้ว +2

      It is pretty easy actually . Just make a function that accept the bone angle ,then check if bone angle is bigger then maximum value , and if the bone angle is > maximum value to return your max angle.

    • @AliceTheSpider
      @AliceTheSpider 2 ปีที่แล้ว +1

      @@eduardoalvarez6257 dot product

  • @yahyadadshah9408
    @yahyadadshah9408 7 ปีที่แล้ว +5

    watching your videos makes me love do more coding 😃

  • @aminthemar
    @aminthemar 4 ปีที่แล้ว +10

    14:28 They're playing basketball at the end

    • @bbugarschi
      @bbugarschi 4 ปีที่แล้ว +2

      basketapple you mean...

    • @rock4459
      @rock4459 4 หลายเดือนก่อน

      But i think they forgot about the basket 😅 ​@@bbugarschi

  • @playboy1103
    @playboy1103 7 ปีที่แล้ว +6

    laughed really hard a few times. great job. loved it.

  • @Danacus
    @Danacus 6 ปีที่แล้ว

    That's so satisfying to watch!

  • @nagualdesign
    @nagualdesign 6 ปีที่แล้ว +3

    Interesting that when the apple moved from out of reach, with the arm perfectly straight, to within reach, the arm zig-zagged, with segments alternately bending clockwise or anticlockwise.

  • @mrfincher
    @mrfincher 6 ปีที่แล้ว

    Awesome! :D

  • @noelearlwatson2724
    @noelearlwatson2724 7 ปีที่แล้ว +3

    Nice

  • @realcygnus
    @realcygnus 7 ปีที่แล้ว

    superb

  • @Michael89240
    @Michael89240 7 ปีที่แล้ว

    Woah. This channel grew so fast. I remember this only had 10k subs

    • @kuskus_th13
      @kuskus_th13 7 ปีที่แล้ว

      Michael Lin I remember it having 90k.

  • @cunningham.s_law
    @cunningham.s_law 7 ปีที่แล้ว

    i crave these videos

  • @kokorogames61
    @kokorogames61 3 ปีที่แล้ว

    Hello! I actually opened TH-cam with the purpose of writing an idea to you to make a video about IK. First I searched to see if you already had a clip about that and of course you do. I'm going to watch the other IK clips of your too. Are you planning to make any clips about IK constraints? Like limiting the angles of segments? Or even IK in 3d? This is even more interesting with constraints. I watched tons of your clips, I am forever grateful.

  • @yohannjolain77
    @yohannjolain77 7 ปีที่แล้ว +1

    Nice video, it's really nice :)
    There's just a little thing, I want to point. Why, when you instanciate your ArrayList, you don't use the diamond operator? (Available since Java 8)
    You're declaration of an ArrayList becomes:
    ```java
    ArrayList tentacles = new ArrayList();
    ```
    It's nice and avoid some typing :)
    But keep working, i like those challenges!
    EDIT: Why don't you support markdown TH-cam... it's nice when we want to show some code

  • @kevnar
    @kevnar 4 ปีที่แล้ว

    Coding Challenge! Inverse Kinematics PONG! One player controls the kinematic arm with the mouse instead of a paddle. If the puck gets within a certain distance of the end, it counts as a catch. If you miss, the other player gets a point. If you caught the puck, you click and drag (Angry Birds style) to set up a serve to the other side.
    The AI, on the other side, just follows the mouse, but with limited speed.

  • @cirocayodeleonburgos7900
    @cirocayodeleonburgos7900 7 ปีที่แล้ว +17

    u can crete a next coding challenge about navier stokes equations.

    • @raphschru9865
      @raphschru9865 7 ปีที่แล้ว +9

      Simulate liquids, great idea !

    • @kim15742
      @kim15742 7 ปีที่แล้ว +2

      Oh, yes! My dream!

  • @kiddopediabysaharshevan5060
    @kiddopediabysaharshevan5060 ปีที่แล้ว

    Da Bobby roast😂

  • @komeny
    @komeny 7 ปีที่แล้ว

    please do zentangle patterns!

  • @ilyakosarev9189
    @ilyakosarev9189 6 ปีที่แล้ว

    Hello. Please make a lesson on how to make angle constraints in this IK system.)
    Have a nice day!

  • @arjunpalusa9421
    @arjunpalusa9421 5 ปีที่แล้ว +1

    Hi , Could you please share total background of Inverse kinematics , All mathematical formulas working in background, Not commands.

    • @PaulGoux
      @PaulGoux 5 ปีที่แล้ว

      Not sure if this can help, ive implemented this idea without any vector functions, might be worth checking out, its 95% done just a few things to iron out but otherwise it works well.
      www.khanacademy.org/computer-programming/kinematics/6459923859341312

  • @architnaik5096
    @architnaik5096 7 ปีที่แล้ว +1

    It's uploaded 2 mins ago with comments 1 day old what even is this?

  • @misode
    @misode 7 ปีที่แล้ว

    What is the outro music?

    • @kuskus_th13
      @kuskus_th13 7 ปีที่แล้ว +1

      His "theme song". Search "Welcome to undefined"

  • @robinkelmen6332
    @robinkelmen6332 2 ปีที่แล้ว

    Can you make a robot with limbs that use Inverse Kinematics that also reacts to gravity?

  • @Holobrine
    @Holobrine 5 ปีที่แล้ว

    8:11 Dude, that’s a basketball hoop.

  • @cervi6538
    @cervi6538 6 ปีที่แล้ว

    A coding challenge 1st person camera 3d videogame

  • @aimenmansouri7648
    @aimenmansouri7648 7 ปีที่แล้ว

    that was java or js ?

    • @mrduck7957
      @mrduck7957 7 ปีที่แล้ว +1

      I believe it's Processing based on java

    • @CarlinoGonzalez
      @CarlinoGonzalez 7 ปีที่แล้ว +2

      It is Processing, which is based on Java

    • @aimenmansouri7648
      @aimenmansouri7648 7 ปีที่แล้ว

      in passe chalenges he was programing with js did he wase use library or just js ?

    • @YoutubeAdministrator
      @YoutubeAdministrator 7 ปีที่แล้ว +1

      he uses a library called p5.js in most of his js coding challenges.

    • @CarlinoGonzalez
      @CarlinoGonzalez 7 ปีที่แล้ว +1

      TECH-AREA Aimen.m it's a JavaScript Library called P5.js. There are a lot of tutorials out there :)

  • @Kino-Imsureq
    @Kino-Imsureq 6 ปีที่แล้ว

    weird bcuz it dulplicated it.

  • @slick8509
    @slick8509 7 ปีที่แล้ว +1

    create 8 ball pool basic please

  • @curt8806
    @curt8806 6 ปีที่แล้ว +1

    For some reason I read it as testacles.