This week said lighting on the calendar I think we should stand on things instead Last time: Objects block our movement We can test if a point is inside an object So we can stop moving down, right? First: Are we standing on anything? If so, let's not fall! If a point below us is inside something... Second: Can we jump? Let's make an extra rabbity jump so we can test landing on things Some games let you control your fall Why does this make sense? We'll do that Can you jump while you're falling? Third: Are we about to land? Would we be inside something if we fell any further? Simple enough question Do we need to make sure we don't accidentally fall through something thin? Fourth: Normally we can step onto stuff How high? Must adjust height to match what we're standing on But...do we go over or under things? Fifth: How about crumbly brick? We'll have to notify the object if the player is on it or landed on it A trampoline would be similar Lab this week: Make a jump sequence if(player_pos) is in the win spot, do something Put in some kind of reset mechanism