C# 클래스 Nez.Tweens.TransformSpringTween

상속: AbstractTweenable
파일 보기 프로젝트 열기: prime31/Nez

공개 프로퍼티들

프로퍼티 타입 설명
angularFrequency float
dampingRatio float

공개 메소드들

메소드 설명
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%

비공개 메소드들

메소드 설명
getCurrentValueOfTweenedTargetType ( ) : Vector2

메소드 상세

TransformSpringTween() 공개 메소드

Initializes a new instance of the Prime31.ZestKit.TransformSpringTween class.
public TransformSpringTween ( Transform transform, TransformTargetType targetType, Vector2 targetValue ) : Microsoft.Xna.Framework
transform Transform Transform.
targetType TransformTargetType
targetValue Vector2
리턴 Microsoft.Xna.Framework

setTargetValue() 공개 메소드

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.
public setTargetValue ( Vector2 targetValue ) : void
targetValue Vector2 Target value.
리턴 void

setTweenedValue() 공개 메소드

public setTweenedValue ( Vector2 value ) : void
value Vector2
리턴 void

tick() 공개 메소드

public tick ( ) : bool
리턴 bool

updateDampingRatioWithHalfLife() 공개 메소드

lambda should be the desired duration when the oscillation magnitude is reduced by 50%
public updateDampingRatioWithHalfLife ( float lambda ) : void
lambda float Lambda.
리턴 void

프로퍼티 상세

angularFrequency 공개적으로 프로퍼티

An angular frequency of 2pi (radians per second) means the oscillation completes one full period over one second, i.e. 1Hz. should be less than 35 or so to remain stableThe angular frequency.
public float angularFrequency
리턴 float

dampingRatio 공개적으로 프로퍼티

lower values are less damped and higher values are more damped resulting in less springiness. should be between 0.01f, 1f to avoid unstable systems.
public float dampingRatio
리턴 float