<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNAction/move(by:duration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNAction(cm)moveBy:duration:"
  },
  "title" : "move(by:duration:)"
}
-->

# move(by:duration:)

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

```
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

A new action object.

## Discussion

When the action executes, the node’s [`position`](/documentation/SceneKit/SCNNode/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:

```objc
SCNVector3 reverseDelta = SCNVector3Make(-delta.x, -delta.y, -delta.z);
[SCNAction moveBy: reverseDelta duration: duration];
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)