Acceleration is the rate at which the velocity changes.
An acceleration of 0 means that the Object travels at a constant velocity (i.e. the velocity does not change).
Example
If an object has an initial velocity of 10 pixels per second and accelerates at 1 pixel per second:
·
after 1 second its velocity will be 11 pixels per second
·
after 10 seconds it velocity will be 20 pixels per second.
The distance moved can be calculated from the formula D = v * t + a * t * t / 2;
where D is the distance moved, v is the initial velocity and t is the time in seconds.
In the above example, after 10 seconds the object would have moved 10 * 10 + 1 * 10 * 10 / 2 = 150 pixels.
Within SWiSHscript, the concept of acceleration is also applied to % values. In this case, the acceleration is the rate at which the % velocity changes per second.