Skip to main content

Physics Engine Basics

  • Chapter
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

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Aditya Ravi Shankar

About this chapter

Cite this chapter

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

Download citation

Publish with us

Policies and ethics