CHAPTER 1

image

Introduction to Physics Programming

You’ve picked up this book because you are interested in implementing physics in your programming projects. But why would you want to do that? What can it do for you? And how difficult will it be? This chapter will provide answers to these questions.

Topics covered in this chapter include the following:

  • Why model real physics? This section will explain some of the reasons why you might want to add physics to your projects.
  • What is physics? Here we lift the veil of mystery and explain in simple terms what physics is. We also tell you, in a nutshell, what you’ll need to know before you can write code ...

Get Physics for JavaScript Games, Animation, and Simulations: with HTML5 Canvas now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.