In Chapter 8 of Making Things Move I wrote about a subject called easing. I called this type of easing simple easing because it was quite easy to implement and had limited power and flexibility. This type of easing consists of having an object and a target location for that object to move to. On each frame you calculate the distance between the object and the target and move it one-half (or some other fraction) of that distance. The object moves smoothly into place, slowing down as it arrives at the target.
KeywordsTarget Object Multiple Object Generic Object Full Speed Event Handler
Unable to display preview. Download preview PDF.