Summary

This chapter covered basic velocity and acceleration, the two factors that will make up the vast majority of your scripted animations. Youve learned about vectors and vector addition. Youve seen how to accomplish velocity on a single axis, two axes, and on an angle by converting it to its x and y components . And youve learned about accelerationhow it relates to velocity and how to apply it to a single axis, two axes, or an angle.

The biggest thing to take from this chapter is a basic understanding of the application of acceleration and velocity, as described in the following steps:

  • Convert existing angular velocity to component x, y velocities.

  • Convert angular acceleration to component x, y acceleration.

  • Add the acceleration on each axis to the velocity on that axis.

  • Add the velocity on each axis to the position on that axis.

In the next chapter, youll build on these concepts, adding some environmental interaction with bouncing and friction.



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