Property | Type | Description | |
---|---|---|---|
angularFrequency | float | ||
dampingRatio | float |
Method | Description | |
---|---|---|
TransformSpringTween ( Transform transform, TransformTargetType targetType, Vector2 targetValue ) : Microsoft.Xna.Framework |
Initializes a new instance of the Prime31.ZestKit.TransformSpringTween class.
|
|
setTargetValue ( Vector2 targetValue ) : void |
you can call setTargetValue at any time to reset the target value to a new Vector2. If you have not called start to add the spring tween it will be called for you.
|
|
setTweenedValue ( Vector2 value ) : void | ||
tick ( ) : bool | ||
updateDampingRatioWithHalfLife ( float lambda ) : void |
lambda should be the desired duration when the oscillation magnitude is reduced by 50%
|
Method | Description | |
---|---|---|
getCurrentValueOfTweenedTargetType ( ) : Vector2 |
public TransformSpringTween ( Transform transform, TransformTargetType targetType, Vector2 targetValue ) : Microsoft.Xna.Framework | ||
transform | Transform | Transform. |
targetType | TransformTargetType | |
targetValue | Vector2 | |
return | Microsoft.Xna.Framework |
public setTargetValue ( Vector2 targetValue ) : void | ||
targetValue | Vector2 | Target value. |
return | void |
public setTweenedValue ( Vector2 value ) : void | ||
value | Vector2 | |
return | void |
public updateDampingRatioWithHalfLife ( float lambda ) : void | ||
lambda | float | Lambda. |
return | void |