HTML5+CSS on Canvas 3D WebGL (TM) Library

acceleration Library Method

Short Description: Specify Acceleration as Vector

Signature: t.acceleration (x,y,z)
Group: Motion
Class: transition Class

Explicitly sets the acceleration used for a motion with constant acceleration. Please refer to taccgl Transitions for an explanation of motion with constant acceleration. Default acceleration is zero. This means that the objects moves with the same constant speed throughout the transition.

Note that either starting or end point or both have to be set (e.g. using from or to). Also note that the acceleration may be set just once using one of the functions acceleration, scalarAcceleration, vBegin and vEnd.


var"logoimg");,1000,0).start(); RUN
var"logoimg");,1000,0).acceleration(1000,0,0).start(); RUN
var"logoimg");,1000,0).acceleration(-1000,0,0).start(); RUN
var"logoimg");,1000,0).acceleration(0,3000 ,0).start(); RUN

WebGL™ is a trademark of the Khronos Group Inc.

Next Page:transition.vBegin - Set initial velocity
Previous Page: transition.scalarAcceleration - Give Acceleration as Scalar Value