Vector2Swoop
METHODS
-
y(endValue, duration (opt), tweenType (opt), completionCallbackOwner (opt), completionCallbackName (opt), completionCallbackArgs (opt), pauseImmunity (opt), speedControl (opt), eventCallbackOwner (opt), eventCallbackName (opt)) returns {Swooper}
-
Swoops (interpolates) given component from its current value to the given end value over the duration.
Parameters:
Name Type Attributes Default Description endValuenumber The ending value for the numeric property being swooped.
durationnumber <optional>
The duration for the interpolation. [DEFAULT: 0]
tweenTypeTweenType <optional>
The TweenType, determining the method of interpolation. [DEFAULT: nc.tweenTypes.Linear]
completionCallbackOwnerobject <optional>
The object owning the callback function that is called when the Swooper completes.
completionCallbackNamestring <optional>
The name of the function that is called when the Swooper completes.
completionCallbackArgsArray | any <optional>
Arguments for the function that is called when the Swooper completes.
pauseImmunityPauseEvent | Array.<PauseEvent> <optional>
The PauseEvent or Array of PauseEvents that this Swooper will be immune to. Set this parameter to [] to create callbacks with no immunity. If this parameter is left undefined, the current value of 'nc.defaultPauseImmunity' will be used. The value for 'nc.defaultPauseImmunity' defaults to [], but can be changed at any time. [DEFAULT: nc.defaultPauseImmunity]
speedControlSpeedControl | Array.<SpeedControl> <optional>
The SpeedControl or Array of SpeedControls that this Swooper is affected by. [DEFAULT: nc.defaultSpeedControl]
eventCallbackOwnerobject <optional>
The object owning the callback function that is called with each fixedUpdate during the swooping process.
eventCallbackNamestring <optional>
The name of the function that is called with each fixedUpdate during the swooping process.
Returns:
Swooper
-
all(endValue, duration (opt), tweenType (opt), completionCallbackOwner (opt), completionCallbackName (opt), completionCallbackArgs (opt), pauseImmunity (opt), speedControl (opt), eventCallbackOwner (opt), eventCallbackName (opt)) returns {Swooper}
-
Swoops (interpolates) all of the Vector components from their current values to the given end value over the duration.
Parameters:
Name Type Attributes Default Description endValuenumber The ending value for the numeric properties being swooped.
durationnumber <optional>
The duration for the interpolation. [DEFAULT: 0]
tweenTypeTweenType <optional>
The TweenType, determining the method of interpolation. [DEFAULT: nc.tweenTypes.Linear]
completionCallbackOwnerobject <optional>
The object owning the callback function that is called when the Swooper completes.
completionCallbackNamestring <optional>
The name of the function that is called when the Swooper completes.
completionCallbackArgsArray | any <optional>
Arguments for the function that is called when the Swooper completes.
pauseImmunityPauseEvent | Array.<PauseEvent> <optional>
The PauseEvent or Array of PauseEvents that this Swooper will be immune to. Set this parameter to [] to create callbacks with no immunity. If this parameter is left undefined, the current value of 'nc.defaultPauseImmunity' will be used. The value for 'nc.defaultPauseImmunity' defaults to [], but can be changed at any time. [DEFAULT: nc.defaultPauseImmunity]
speedControlSpeedControl | Array.<SpeedControl> <optional>
The SpeedControl or Array of SpeedControls that this Swooper is affected by. [DEFAULT: nc.defaultSpeedControl]
eventCallbackOwnerobject <optional>
The object owning the callback function that is called with each fixedUpdate during the swooping process.
eventCallbackNamestring <optional>
The name of the function that is called with each fixedUpdate during the swooping process.
Returns:
Swooper- Inherited From:
-
each(endValues, duration (opt), tweenType (opt), completionCallbackOwner (opt), completionCallbackName (opt), completionCallbackArgs (opt), pauseImmunity (opt), speedControl (opt), eventCallbackOwner (opt), eventCallbackName (opt)) returns {Swooper}
-
Swoops (interpolates) each of the Vector components from their current values to the given end values over the duration.
Parameters:
Name Type Attributes Default Description endValuesArray.<number> The ending values for the numeric properties being swooped.
durationnumber <optional>
The duration for the interpolation. [DEFAULT: 0]
tweenTypeTweenType <optional>
The TweenType, determining the method of interpolation. [DEFAULT: nc.tweenTypes.Linear]
completionCallbackOwnerobject <optional>
The object owning the callback function that is called when the Swooper completes.
completionCallbackNamestring <optional>
The name of the function that is called when the Swooper completes.
completionCallbackArgsArray | any <optional>
Arguments for the function that is called when the Swooper completes.
pauseImmunityPauseEvent | Array.<PauseEvent> <optional>
The PauseEvent or Array of PauseEvents that this Swooper will be immune to. Set this parameter to [] to create callbacks with no immunity. If this parameter is left undefined, the current value of 'nc.defaultPauseImmunity' will be used. The value for 'nc.defaultPauseImmunity' defaults to [], but can be changed at any time. [DEFAULT: nc.defaultPauseImmunity]
speedControlSpeedControl | Array.<SpeedControl> <optional>
The SpeedControl or Array of SpeedControls that this Swooper is affected by. [DEFAULT: nc.defaultSpeedControl]
eventCallbackOwnerobject <optional>
The object owning the callback function that is called with each fixedUpdate during the swooping process.
eventCallbackNamestring <optional>
The name of the function that is called with each fixedUpdate during the swooping process.
Returns:
Swooper- Inherited From:
-
x(endValue, duration (opt), tweenType (opt), completionCallbackOwner (opt), completionCallbackName (opt), completionCallbackArgs (opt), pauseImmunity (opt), speedControl (opt), eventCallbackOwner (opt), eventCallbackName (opt)) returns {Swooper}
-
Swoops (interpolates) given component from its current value to the given end value over the duration.
Parameters:
Name Type Attributes Default Description endValuenumber The ending value for the numeric property being swooped.
durationnumber <optional>
The duration for the interpolation. [DEFAULT: 0]
tweenTypeTweenType <optional>
The TweenType, determining the method of interpolation. [DEFAULT: nc.tweenTypes.Linear]
completionCallbackOwnerobject <optional>
The object owning the callback function that is called when the Swooper completes.
completionCallbackNamestring <optional>
The name of the function that is called when the Swooper completes.
completionCallbackArgsArray | any <optional>
Arguments for the function that is called when the Swooper completes.
pauseImmunityPauseEvent | Array.<PauseEvent> <optional>
The PauseEvent or Array of PauseEvents that this Swooper will be immune to. Set this parameter to [] to create callbacks with no immunity. If this parameter is left undefined, the current value of 'nc.defaultPauseImmunity' will be used. The value for 'nc.defaultPauseImmunity' defaults to [], but can be changed at any time. [DEFAULT: nc.defaultPauseImmunity]
speedControlSpeedControl | Array.<SpeedControl> <optional>
The SpeedControl or Array of SpeedControls that this Swooper is affected by. [DEFAULT: nc.defaultSpeedControl]
eventCallbackOwnerobject <optional>
The object owning the callback function that is called with each fixedUpdate during the swooping process.
eventCallbackNamestring <optional>
The name of the function that is called with each fixedUpdate during the swooping process.
Returns:
Swooper- Inherited From: