Skip to main content

Physics Engine Basics

  • Chapter
  • First Online:
Pro HTML5 Games

Abstract

A physics engine is a program that provides an approximate simulation of a game world by creating a mathematical model for all the object interactions and collisions within the game. It accounts for gravity, elasticity, friction, and conservation of momentum between colliding objects so that the objects move in a believable way. For our game, we are going to be using an existing and very popular physics engine called Box2D.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Aditya Ravi Shankar

About this chapter

Cite this chapter

Shankar, A.R. (2017). Physics Engine Basics. In: Pro HTML5 Games. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2910-1_3

Download citation

Publish with us

Policies and ethics