• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Chapter 6. Collision Reactions

Bouncing Off the Walls

Conservation of Momentum and Energy

Applying the Conservation Laws

Points to Remember

This is the chapter in which things really start to come together. You will be applying many ideas you learned from previous chapters. In Chapter 4, “Basic Physics,” you learned the concepts and equations needed to move movie clips around the screen. With the added concepts of gravity and friction you were able to add even more realism to a programmed system. In Chapter 5, “Collision Detection,” you learned how to detect collisions between many types of objects—some moving, some not. The logical next step is to learn the physics and equations involved in making objects (movie clips) react to a collision in a physically realistic way. In this chapter we will look at several useful examples of collision reactions. For a few of them, we'll also learn about (and apply) the laws of conservation of momentum and energy. By the end of this chapter you will be able to program billiard-ball collisions, a box or a ball bouncing off a floor or wall, and even a ball bouncing off an angled line! Suddenly games like pinball, pool, and air hockey won't seem quite as mysterious.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint