Click or drag to resize

TransitionType_DecelerationonTimer Method

Works out the percentage completed given the time passed in. This uses the formula: s = ut + 1/2at^2 The initial velocity is 2, and the acceleration to get to 1.0 at t=1.0 is -2, so the formula becomes: s = t(2-t)

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_Deceleration.onTimer(System.Int32,System.Double@,System.Boolean@)"]

dPercentage
Type: SystemDouble

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

bCompleted
Type: SystemBoolean

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

Implements

ITransitionTypeonTimer(Int32, Double, Boolean)
See Also