Summary

This chapter covered just about everything you need to know about collision detection, including the built-in hitTest function in all its variations, distance-based collision checking, and how to efficiently track collisions among many objects. You should know the pluses and minuses of each method, and situations where each works well or does not perform satisfactorily. Youll be using all of this material as you move forward in the book, and no doubt, youll be using it extensively in your own projects.

In the next chapter, youll find out what to do to create a realistic reaction to the collisions you have now detected .



Foundation ActionScript. Animation. Making Things Move
Foundation Actionscript 3.0 Animation: Making Things Move!
ISBN: 1590597915
EAN: 2147483647
Year: 2005
Pages: 137
Authors: Keith Peters

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net