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

# move(to:duration:)

Creates an action that moves a node to a new position.

## Declaration

```swift
class func move(to location: SCNVector3, duration: TimeInterval) -> SCNAction
```

## Parameters

- `location`: The coordinates for the node’s new position in its parent node’s local coordinate space.
- `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 not reversible; the reverse of this action has the same duration but does not move the node.

## See Also

### Creating Actions That Move a Node

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