ProtoFlux:PlaybackDrive
More actions
Playback Drive is a node that will take a SyncPlayback and allow you to start or stop driving it to a set of provided playback settings and values. The driving of the SyncPlayback is non networked.
It is intended that the NormalizedPosition input continuously increases (at the rate specified by the Speed & Play inputs), however, if the given MaximumPositionError is sufficiently large, this is not required[1] (however may lead to unexpected behaviour such as playback restarting, or desynchronised playback)
Inputs
StartDrive (Call)
Starts driving the Target (SyncPlayback) in a non networked fashion, which essentially makes the provided Target (SyncPlayback) no longer synced until StopDrive (Call) is called.
StopDrive (Call)
Stop driving the Target (SyncPlayback), making it networked again.
ForceResync (Call)
When this is impulsed, the node will set the current Target (SyncPlayback)'s position to the exact value of NormalizedPosition (float), even if it's already within the allowed position error.
Target (SyncPlayback)
The Network Synced Playable that will become un-networked via being driven by this node.
NormalizedPosition (float)
The position to drive Target (SyncPlayback) to from 0 to 1.
Maximum Position Error (float)
The the max amount the position on Target (SyncPlayback) can vary from NormalizedPosition (float).
Speed (float)
The a multiplier for the playback speed of Target (SyncPlayback).
Play (bool)
If the Target (SyncPlayback) should be playing. (default true if normalized position is given and moving)
Loop (bool)
If the Target (SyncPlayback) should loop. May clash when providing NormalizedPosition (float)
Outputs
OnStartDrive (Continuation)
When StartDrive (Call) is impulsed and it can drive Target (SyncPlayback)
OnStopDrive (Continuation)
When StopDrive (Call) is impulsed and this node was driving Target (SyncPlayback)
OnResync (Continuation)
sends an impulse when ForceResync (Call) succeeds.
IsDriving (bool)
If the Target (SyncPlayback) is currently driving. (Aka StartDrive (Call) was called but not StopDrive (Call) yet.)