---
title: "move(by:duration:)"
framework: scenekit
role: symbol
role_heading: Type Method
path: "scenekit/scnaction/move(by:duration:)"
---

# move(by:duration:)

Creates an action that moves a node relative to its current position.

## Declaration

```swift
class func move(by delta: SCNVector3, duration: TimeInterval) -> SCNAction
```

## Parameters

- `delta`: A vector that describes the change to be applied to the node’s position.
- `duration`: The duration, in seconds, of the animation.

## Return Value

Return Value A new action object.

## Discussion

Discussion When the action executes, the node’s position property animates from its current position to its new position. This action is reversible; the reverse is created as if the following code had been executed: SCNVector3 reverseDelta = SCNVector3Make(-delta.x, -delta.y, -delta.z); [SCNAction moveBy: reverseDelta duration: duration];

## See Also

### Creating Actions That Move a Node

- [moveBy(x:y:z:duration:)](scenekit/scnaction/moveby(x:y:z:duration:).md)
- [move(to:duration:)](scenekit/scnaction/move(to:duration:).md)
