Chapter 2: Rigid Body Physics & Motion Properties

Professor Parse

In this chapter, you'll play Crazy Golf, a mini golf game, and find out how its walls, windmills, crates, and ice all come from one idea: every actor has a rigid body, and the kind of rigid body you pick decides how it moves. The big ideas are static, kinematic, and dynamic bodies, and how density, bounciness, friction, and damping change the way things roll.

I'm still writing this chapter, step by step. In the meantime, you can play the finished game, and read the code and the assets that make it, so that you can run it and change it yourself.

Play the Game

The code that makes it:

The assets, which go in an assets folder next to the game: