HTML5 Canvas 2D Library

vBegin Library Method

Short Description: Set initial velocity

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

Implicitely sets the acceleration used for a motion with constant acceleration by specifying the inital velocity of the object at the beginning of the transition. The acceleration is calculated so that the object has the specified initial velocity and that it reaches the specified end point of the motion in specified the duration. Please refer to taccgl Transitions for an explanation of motion with constant acceleration. Default acceleration is zero.

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"pgMiddleColumnTable");,a.y0-400,0).vBegin(0,0,0).start(); RUN
var"pgMiddleColumnTable");,a.y0-400,0).vBegin(-1000,0,0).start(); RUN

WebGL™ is a trademark of the Khronos Group Inc.

Next Page:transition.vEnd - Set final velority
Previous Page: transition.acceleration - Specify Acceleration as Vector