You might be tempted to simulate this bounce behavior by taking the absolute value of the oscillating sine wave (using the JavaScript Math.abs() function) and linking the frequency variable to a slider which you would keyframe to speed up. Notice that the bounces occur more frequently as the object loses energy. This waveform is generated by a bounce simulation expression. The object stops at the top of the bounce and then accelerates (due to the force of some gravity-like phenomenon), so the math involved is completely different. In fact, the bounce waveform is actually a series of parabolas of decreasing amplitude. That means a sine wave simulation is not adequate for a bounce. As the amplitude of the bounces decrease, they happen more often. When an object bounces, it loses energy on each bounce, which affects both the amplitude and the frequency.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |