TransitionType_Acceleration Class Members
The following tables list the members exposed by TransitionType_Acceleration.
Public Constructors
Name | Description | |
---|---|---|
TransitionType_Acceleration Constructor | Constructor. You pass in the time that the transition will take (in milliseconds). |
Public Methods
Name | Description | |
---|---|---|
onTimer | Works out the percentage completed given the time passed in. This uses the formula: s = ut + 1/2at^2 The initial velocity is 0, and the acceleration to get to 1.0 at t=1.0 is 2, so the formula just becomes: s = t^2 |
See Also