O'Reilly logo

Foundation ActionScript 3.0 Animation: Making Things Move! by Keith Peters

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 10. COORDINATE ROTATION AND BOUNCING OFF ANGLES

What we'll cover in this chapter:

  • Simple coordinate rotation

  • Advanced coordinate rotation

  • Bouncing off an angle

  • Important formulas in this chapter

This chapter covers a particular technique known as coordinate rotation. As its name implies, this technique involves rotating a coordinate around a point. While useful all by itself, coordinate rotation is indispensable for several very interesting effects. One of those is the answer to a question that has continuously been asked on all the Flash boards for years: "How do I bounce something off an angled surface?" I'll cover how to do that in this chapter.

Another useful application of coordinate rotation is for calculating the reactions of two objects ...

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