Click or drag to resize

TransitionType_AccelerationonTimer Method

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

Namespace:  Transitions
Assembly:  Advanced Combat Tracker (in Advanced Combat Tracker.exe) Version: 3.7.0.280
Syntax
C#
public void onTimer(
	int iTime,
	out double dPercentage,
	out bool bCompleted
)

Parameters

iTime
Type: SystemInt32

[Missing <param name="iTime"/> documentation for "M:Transitions.TransitionType_Acceleration.onTimer(System.Int32,System.Double@,System.Boolean@)"]

dPercentage
Type: SystemDouble

[Missing <param name="dPercentage"/> documentation for "M:Transitions.TransitionType_Acceleration.onTimer(System.Int32,System.Double@,System.Boolean@)"]

bCompleted
Type: SystemBoolean

[Missing <param name="bCompleted"/> documentation for "M:Transitions.TransitionType_Acceleration.onTimer(System.Int32,System.Double@,System.Boolean@)"]

Implements

ITransitionTypeonTimer(Int32, Double, Boolean)
See Also