O'Reilly logo

Beginning WebGL for HTML5 by Brian Danchilla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 5

image

Physics

In this chapter, we will introduce modeling physical interactions among objects in our scene. Topics that we will cover in this chapter are:

  • Position, velocity, acceleration
  • Forces such as gravity and friction
  • Projectile motion
  • Detecting and reacting to collisions
  • Elasticity and the conservation of momentum
  • Potential and kinetic energy

Background

In addition to lighting, texturing, and other visual cues of realism, how objects physically interact with their surroundings can give credence to the believability of our animations. Interaction that does not follow physical laws can look strange and unrealistic. Of course, this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required