Coding Challenge #64.1: Forward Kinematics

preview_player
Показать описание


Other Parts of this Challenge:

References:

Videos:

Related Coding Challenges:

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

#forwardkinematics #inversekinematics #tentacleanimation #linkedlists #arrays #processing
Рекомендации по теме
Комментарии
Автор

I wish Daniel was compensated equivalently for how much he has helped programming initiates like me.

rifotpe
Автор

Currently helping a student out with making a puppet in Processing for a very open ended assessment, this has helped a bunch, thankyou!!

bhuhuhuhuhbuhuh
Автор

You make learning so easy, I'm watching thse with a smile on my face.

jgiuguigiugigiugugiuuig
Автор

I really enjoy watching these! I love your enthusiasm, and I'm learning a lot! Thank you so much for taking the time to do your live streams and edit these videos! Your students are really fortunate to have a professor like you.

patplunkett
Автор

I love you man, been wanting to learn this for a while :D

jabrilsdev
Автор

You really only need PVector b. The length and angle are inherent in the vector relative to 0, 0. If you just supply b and translate a.x and a.y to 0, 0 before drawing, you have the length and angle already.

kevnar
Автор

19:40 gave me a weird clock idea. Hands can be lines connected to each other. Minute spinning at the tip of hour, and second spinning at the tip of minute. I wonder how that would look like.

akinoreh
Автор

superb content per no BIG worries about going too far off your frequent tangents are just a consequence of unscripted/real-time programming....& its crucial for the flavor/level of your other words don't change a thing.

realcygnus
Автор

daniel, you need to bring the time limit back. that was a lot of fun watching you geting disturbed by the time left. good show

hooooy
Автор

Daniel, thanks a lot for your great videos on programming. Most of your programming videos are on the basis of computational geometry and graphics. In your videos, you have shown that programming is not a context of boring. It is a topic of fun and mystery. Now it would be helpful for me, if you kindly explain the sequence of topic that I should follow to be a programmer like you. I want to be expert in algorithm and computational geometry based program. Like you so much...

mukulbarai
Автор

Another reason for the child reference: Give the child in the constructor, not the parent, and the code looks like this:
Segment tentacle = null;
for (int i = 0; i < 20; i++) {
tentacle = new Segment(tentacle, 10, 0);
}
tentacle = new Segment(tentacle, 10, radians(-90));

DMSG
Автор

You could use curveVertex() and make It extra smooth!

markoftheland
Автор

i like this topic a lot!
i think, that if we changed the linked list data structure into a tree data structure, we might be able to animate something resembling a swaying tree. and using what we already have we might be able to add something like a grass too.
neat!

michalbotor
Автор

13:37 Would it also work if you didn't copy, but instead just made another reference to the same PVector object?

RedsBoneStuff
Автор

hahahaha I already watched codemath video series about inverse kinematic, but I'll watch this one too :)

wfcreations
Автор

This is such an amazing demo. It is so useful to be able to see the code develop piece by piece directly reflected alongside the corresponding visual results
I only know a bit about coding so forgive me if my question is dumb. Is this a recursive kind of solution with the function calling itself?
This video is so exciting because the kinematics you derive is a fundamental component of my artwork for which I use a kinematics application in a physics engine and I create dynamic constrained chaotic behaviour with it.
Thank you for your efforts!

dougboblas
Автор

28:35 the way it moves reminds me of mimi from super paper mario

TFGaming
Автор

Man you should build the segment link with an LSystem! You would have a tree floating in the wind!

osenseijedi
Автор

Why copy parent.b to this.a instead of just having it be reference to the same vector?

alekmoth
Автор

Awesome, Bur taking that parent angle and self angle is little bit confusing

nagesh