[video member=cmuratori stream_platform=twitch stream_username=handmade_hero project=code title="The Equations of Motion" vod_platform=youtube id=LoTRzRFEk5I annotator=abnercoimbre annotator=schme annotator=theinternetftw] [01:02][Intro to equations of motion.] [2:53][Recap of yesterday's stream.] [5:08][Motion in-depth: rigid body dynamics.] [9:15][Linear dynamics.] [13:53][Fundamental equation of motion.] [17:55][Revisiting vectors.] [23:50][How we computed motion.] [25:35][Some calculus.] [28:57][Computing motion differently.] [36:31][How it's currently done in the code.] [37:10][How we want to change it for our new equations.] [40:17][A talk on delta time.] [42:46][Piece-wise functions.] [43:35][Implementation.] [49:13][A look at the game now. We notice player has no friction.] [51:22][Implementing some friction.] [58:26][Closing remarks.] [1:00:40][Q&A][:speech] [1:01:23][Why use real physics and not something custom you can handtune?] [1:06:59][Why not add an opposite directional deceleration when collisions occur?] [1:07:29][Are you concerned that actual physics will retract from the beauty and elegance of the worlds greatest jump code?] [1:08:06][What would you need to store if you wanted to rewind time ala Braid?] [1:12:53][Is the character a bitmap?] [1:13:22][Are we going to normalise the vector from the input, instead of having a special case for diagonals?] [1:14:01][Will there be a map function to help determine terrain for friction and collisions?] [1:14:37][Why v2 instead of vec2 or vector2?] [1:15:13][Why not break the code into smaller functions?] [1:16:36][Shouldn't you use a max speed variable?] [1:17:32][Someone: Friction negative acceleration based on current velocity would feel better] [1:18:06][Can you derive the 1/2at^2 part of the position equation again?] [1:23:54][Do you think something like bullet or box2d for player movement is appropriate?] [1:25:38][When would you use other integration methods?] [1:34:20][Will we use rigid body even after the hero is bouncy and all that?] [1:35:00][Correction on question from someone] [1:35:49][If we had terrain (ice or mud), we could have an easy convincing example] [/video]