---
title: "module::setPosition"
framework: Compute Graph
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/module/setposition
---

# module::setPosition

Sets the position of an element to the specified coordinates.

## Declaration

```swift
void module::setPosition(float3 position)
```

## Parameters

- `position`: The new position coordinates in 3D space

## Discussion

Discussion Use this function to move an element to a specific location in 3D space, replacing its current position. note:
