<!-- Page: https://rustic-game-engine.pages.dev/docs/api/transforms -->

# Transforms

Read and change the owning entity's position.

[Feature status and language/platform compatibility](https://rustic-game-engine.pages.dev/markdown/reference/compatibility.md)

Choose an API to see its signature, parameters, examples and behavior.

## APIs

- [rustic.get_translation()](https://rustic-game-engine.pages.dev/markdown/api/transforms/get-translation.md)
- [rustic.set_translation()](https://rustic-game-engine.pages.dev/markdown/api/transforms/set-translation.md)

## Module guide

## When to call it

Read before applying relative movement. Write from `Update` for presentation movement or `FixedUpdate` for simulation movement. Do not rewrite an unchanged position every frame.

## Variables

| Variable | Type | Required | Description |
| --- | --- | --- | --- |
| `x` | finite number | Yes | Local X relative to the parent. |
| `y` | finite number | Yes | Local Y relative to the parent. |
| `z` | finite number | Yes | Local Z relative to the parent. |

## Return and timing

Get returns three numbers. Set returns no entity value. Lua applies the host write immediately; JavaScript/Web defer it until callback completion or a subsequent canonical scene-target resolution; external SDKs commit at the response or a synchronous query flush. See [execution behavior](https://rustic-game-engine.pages.dev/markdown/guides/scripting.md#when-mutations-take-effect).

## Constraints and behavior

- NaN and infinity are rejected.
- Every gameplay language calls the engine-owned API. Rustic supplies SDKs and dispatches callbacks; scripts do not parse requests or serialize responses. See the language guide for complete setup and callback registration.
