Physics for JavaScript Games, Animation, and Simulations

With HTML5 Canvas

  • Authors
  • Dev Ramtal
  • Adrian Dobre

Table of contents

  1. Front Matter
    Pages i-xxviii
  2. The Basics

    1. Front Matter
      Pages 1-1
    2. Dev Ramtal, Adrian Dobre
      Pages 3-10
    3. Dev Ramtal, Adrian Dobre
      Pages 11-35
    4. Dev Ramtal, Adrian Dobre
      Pages 37-73
    5. Dev Ramtal, Adrian Dobre
      Pages 75-108
  3. Particles, Forces, and Motion

    1. Front Matter
      Pages 109-109
    2. Dev Ramtal, Adrian Dobre
      Pages 111-132
    3. Dev Ramtal, Adrian Dobre
      Pages 133-153
    4. Dev Ramtal, Adrian Dobre
      Pages 155-186
    5. Dev Ramtal, Adrian Dobre
      Pages 187-208
    6. Dev Ramtal, Adrian Dobre
      Pages 209-232
    7. Dev Ramtal, Adrian Dobre
      Pages 233-263
  4. Multi-particle and Extended Systems

    1. Front Matter
      Pages 265-265
    2. Dev Ramtal, Adrian Dobre
      Pages 267-299
    3. Dev Ramtal, Adrian Dobre
      Pages 301-332
    4. Dev Ramtal, Adrian Dobre
      Pages 333-373
  5. Building More Complex Simulations

    1. Front Matter
      Pages 375-375
    2. Dev Ramtal, Adrian Dobre
      Pages 377-397
    3. Dev Ramtal, Adrian Dobre
      Pages 399-428

About this book

Introduction

Have you ever wanted to include believable physical behaviors in your games and projects to give them that extra edge? Physics for JavaScript Games, Animation, and Simulations teaches you how to incorporate real physics, such as gravity, friction, and buoyancy, into your HTML5 games, animations, and simulations. It also includes more advanced topics, such as particle systems, which are essential for creating effects such as sparks or smoke. The book also addresses the key issue of balancing accuracy and simplicity in your games and simulations, and the final chapters provide you with the information and the code to make the right choice for your project.

Physics for JavaScript Games, Animation, and Simulations assumes you have a basic knowledge of JavaScript and HTML5. However, no previous knowledge of physics is required—only some very basic math skills. The authors present everything from basic principles to advanced concepts in an approachable way, so you’ll be able to follow the logic and easily adapt the principles to your own applications.

The book is packed full of practical examples of how you can apply physics to your own games and applications. Spring behaviors can be used for anything from tweaking lowrider suspension to creating cloth simulation; flotation mechanics enable the simulation of submersibles or dirigibles; you can even create your own solar system with accurate orbits and gravity. It doesn’t matter if you’re modeling the Lorentz force in an electromagnetic field or you’re modeling the lift force in a flight simulator, Physics for JavaScript Games, Animation, and Simulations enables you to fill your games and applications with accurate and realistic effects.

Bibliographic information

Industry Sectors
Pharma
Automotive
Electronics
Telecommunications
Aerospace