images

Chapter 10

Coordinate Rotation and Bouncing Off Angles

What we'll cover in this chapter:

  • Simple coordinate rotation
  • Advanced coordinate rotation
  • Bouncing off an angle

This chapter covers a technique known as coordinate rotation, which as its name implies, involves rotating a coordinate around a point. While useful all by itself, coordinate rotation is indispensable for several very interesting effects, including how to bounce something off an angled surface. We'll cover how to do that in this chapter.

Coordinate rotation is also useful for calculating the reactions of two objects that bounce off each other. You'll see how to do that in the ...

Get Foundation HTML5 Animation with JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.