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

Unit: Simulation

A believable world frequently contains objects that need to move in a realistic way, but are too complicated or numerous to move individually “by hand” - things like leaves on a tree or hairs on a monster’s body. In this lesson, visitors will learn how Pixar uses computer programming to create believable simulated hair as seen in the film Brave.

In this lesson we'll show you how to code a spring-mass system which is the basis for many different kinds of simulations. This lesson is most appropriate for grades 9+ and takes approximately 1 hour to complete.