Tween (로직스 노드)
Tween | ||
---|---|---|
![]() | ||
Inputs | ||
Impulse | Tween | |
T | To(목표점) | |
T | From(시작점) | |
Float | Duration(동작시간) | |
CurvePreset | CurvePreset(변화속도) | |
Outputs | ||
IField`1 | Target(값적용필드) | |
Impulse | OnStarted(시작시 펄스) | |
Impulse | OnDone(완료시 펄스) |
Tween 노드는 Target
에 연결된 필드값을 From
부터 To
까지 Duration
에 지정된 시간(1 = 1초)동안 CurvePreset
에 사전 설정된 변화속도 그래프에 맞추어 변경합니다.
(참고자료 : 보간법)
사용방법
입력인 From
, To
의 자료형과 출력인 Target
은 자료형이 동일해야 합니다. Target의 경우 로직스 인터페이스의 필드로 바로 연결하세요. Duration
은 초를 입력(예. 1 = 1초)합니다. CurvePreset
에는 사용할 보간방법을 선택합니다.
The To
value determines the final value reached at the end of the Duration
.
The From
value determines the initial value at the start of the Duration
.
The Duration
input determines how long the transition from From
to To
takes in seconds. Default is 1.
The CurvePreset
determines the shape of the interpolated values. Default is Smooth.
The OnStarted
output fires an impulse when tweening of the Target
begins as a result of an impulse received at Tween
. An impulse will not be fired if there is no valid Target
. This impulse continues the impulse chain which arrived at Tween
.
The OnDone
output fires an impulse when tweening of the Target
has finished. This does not continue the impulse chain which arrived at Tween
.
Note that only one tween operation for the Target
can be active at any time. Currently target value changes work via sequential writes to the value which may not appear smooth depending on framerates and network latency. Similar, potentially smoother, effects can be achieved with e.g. the various Lerp nodes under Category:LogiX:Math
예제
노드메뉴
Actions | ||||||
---|---|---|---|---|---|---|
Back | -- | ++ | Drive | Drive Playback | Tween | Write |
Write Latch | Write Ref | Write Ref Latch |