Drive (LogiXノード)

From Neos Wiki
Revision as of 20:46, 6 February 2022 by Aesc (talk | contribs)
Jump to navigation Jump to search
Other languages:
English • ‎日本語 • ‎한국어
Drive
'Drive' LogiX node
Inputs
  Impulse StartDrive
  Impulse StopDrive
  dummy Source
Outputs
  IField`1 DriveTarget
  Impulse OnStartDrive
  Impulse OnStopDrive
  Impulse OnHook
  Bool IsDriving
  dummy HookedValue

Driveノードは StartDrive でインパルスを受け取ると、入力 Source 値で参照されている DriveTargetドライブし始めます。ドライブはStopDriveでインパルスを受信すると停止します。

Inputs & Outputs

Inputs
Color Label Type
StartDrive Impulse
StopDrive Impulse
Source (dummy)


The OnStartDrive output fires an impulse whenever an impulse arrives at the StartDrive input. This continues the impulse chain which arrived at StartDrive.


The OnStopDrive output fires an impulse whenever an impulse arrives at the StopDrive input. This continues the impulse chain which arrived at StopDrive.


The OnHook fires an impulse whenever the DriveTarget is driven with the Source value and another source (e.g. a Write node or ButtonValueSet component) attempts (but is not able) to overwrite the value.


The IsDriving output is True while the DriveTarget is driven with the Source value, otherwise False.


The HookedValue output provides the value which another source attempted to set the DriveTarget to when an impulse is fired from OnHook. The value is only available for the duration of the impulse chain started from OnHook.


Note that, when an impulse is received at StartDrive the drive target will become driven by the Source value regardless of whether it was already driven by some other source i.e. control of the target value is overridden.

Outputs
Color Label Type
DriveTarget IField<T>
OnStartDrive Impulse
OnStopDrive Impulse
OnHook Impulse
IsDriving Boolean
HookedValue (dummy)

Usage

ソース入力とHookedValue出力は未設定のダミー型で始まり、これらのいずれか、またはDriveTargetが設定されると、ノードは適切な型に再設定されます。TargetValueによって参照される値が別のドライブノードを含む別のソースによって上書きされている場合、StartDriveでインパルスを受信すると、前の上書き設定は新しいドライブソースによって上書きの設定が上書きされます。ドライブノードがDriveTargetにアクティブな上書き先を設定し、その値への書き込みを試みると、OnHookからインパルスが発射され、HookedValue出力はターゲットに書き込まれたであろう値を提供します(OnHookからのインパルスチェーンの間は利用可能)。OnStartDriveとOnStopDriveは、それぞれStartDriveとStopDriveでのインパルスの結果として上書き動作が正常に起動または停止したときにインパルスを発生させます。

Actions
Back -- ++ Drive Drive Playback Tween Write
Write Latch Write Ref Write Ref Latch