Coding Math: Episode 8 - Velocity

preview_player
Показать описание
This starts the basic physics series and builds on the vector info from episodes 6 and 7.

Рекомендации по теме
Комментарии
Автор

These are incredibly useful tutorials. Thank you so much. I haven't seen a single down vote on any of your videos yet, rarely something that ever happens with programming videos. It is good enough for experienced programmers, yet simple enough for beginners.

robl
Автор

Only 9040 views... I'm proud to be one of the small number of people who can animate objects (using HTML5's Canvas tag and JavaScript) based on vectors and velocity because of this video. Great work! You are 師傅.

LlewellynvonHellen
Автор

Dude!!! Your videos are good!!! They make grasping this stuff much easier than the other stuff online. You should write a Cheers mate!

BabooVII
Автор

I got used to using constructor functions, then putting methods on the prototype, then using 'class', then adding static methods to return new instances from different parameters & now I've got this - ! Thankfully they are not that much different from each other ! This series is excellent. Thanks .

DrTWG
Автор

That some magic! Incredible.
I haven't known until today why I do need these silly vectors. Wow. Just wow.

dvladyko
Автор

Awesome explanations... making things so simple and understandable

mubeenghafoor
Автор

Great tutorials !
Looking forward to watching more :)

JeromePrevost
Автор

9:12 I've been playing too many video games. I clearly see a bloodspatter.

ScaredHelmet
Автор


9:10 I'll refrain from exaggerating but I believe you just made a Big Bang simulator :)

jim_o
Автор

I think you've never got into pixels / second. Just saying. For the interested parties: passes current timestamp to callback so you can calculate the time in seconds since last frame and multiply all your pixel values by the result.

cprn.
Автор

Already the highlight of my Mondays! Any plans to get into the advanced topics you covered in the second Flash animation book? Would be awesome to be able to have a Javascript reference for those techniques, especially steering behaviors.

stronzdimerd
Автор

i came across a little problem with the vectors. I have the exact same code that you are using, and I wanted to make an object move in a circular path around a particular point. to do this, in theory, placing the velocity vector tangentially to the position vector would do the trick.
but while testing it the object moves in a circular path but slowly spirals outward. this is the code that I used.

position= vector.create(0, 0);
velocity= vector.create(0, 0);
velocity.setLength(5);

// and in the loop
context.beginPath();
- Math.PI / 2);
position.addTo(velocity);
context.arc(position.getX(), position.getY(), 20, 0, Math.PI * 2);
context.fill();

can you help me fix this?

madhuracharya
Автор

Is it bad that I read: “Cooking Meth” when I scrolled past it?

literalcode
Автор

could u do this code, velocity, acceleration, angle in python language? thanks

chhorchamreun
Автор

What is the use of setting (0, 0) when creating the velocity vector?
changing the values the animation remain the same

fabio_oid
Автор

Hey Coding math, maybe put your videos in a playlist? it's all over the place. that way episode 1++ can be watched right after the other.

demlar