If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content
Current time:0:00Total duration:2:35

Video transcript

the world is a beautiful place sometimes we walk outside and just rebel in it but other times because we're programmers and we like to program everything we walk outside get inspired by it and then run home to program a simulation of the world around us be it's a leaf falling spinning to the ground or maybe it's a fire burning in a dry forest we can program simulations of all those things and we can do it here on Khan Academy using javascript processing j/s and a bit of math in this course on natural simulations we'll think about how and why things work the way they do in the real world and then figure out how we could translate it into code will make many simplifications because the real world is filled with complexity we don't always needs a model that complexity in order to achieve an interesting simulation and of course our computers can only handle so much so whenever a programmer is simulating nature will always have to fall short of 100% copy but hey I think you'll be really impressed with what we can do especially in the browser we'll start off by talking about randomness a technique you've probably already used in your programs and then noise a more sophisticated form of that we can use those to model motion of objects in the world like somebody lost in the woods but most objects don't move randomly so next we'll introduce vectors and forces which you might have covered in physics class and figure out how to programmatically apply forces to our objects so they can accelerate based on being pushed and pulled and repelled by everything around them to make it our objects can spin on their own axis while they're moving we'll brush up on trigonometry and come up with formulas for angular acceleration we can also use trigonometry to model things like pendulums and waves which can really get pretty hypnotic finally will create particle systems many objects moving together according to their own properties and the system's properties that'll let us model natural phenomena like water fire smoke okay so doesn't that sound awesome are you pumped are you throwing confetti in the air thinking about how soon you'll be able to program that confetti I know the feeling and you're almost ready to dive in but first we want to give a huge shout out to Daniel Shipman Daniel's an NYU professor that teaches course unnatural simulations and he wrote nature of koat.com a whole book about it since he CC licensed that book we were able to port it over to JavaScript and bring it over here and Khan Academy so that all of you can learn it here plus new coding challenges along the way without Daniels book we wouldn't have this exciting course now ready set simulate