---
name: "s3d_translate"
section: "3"
platform: "linux"
package: "s3d-doc"
version: "0.2.2.1-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/s3d_translate"
---

# s3d\_translate(3)

move object to absolute position

## NAME

s3d\_translate - move object to absolute position

## SYNOPSIS

```
#include <s3d.h>
```

**int s3d\_translate(int** *object***, float** *x***, float** *y***, float** *z***);**

## DESCRIPTION

Move the object to some position in space. when you create an object, it's always located at 0.0 , 0.0, 0.0.

**Warning**\

Translation is absolute, not relative!

```
 s3d_translate(object, 2, 0, 0);
 s3d_translate(object, 4, 0, 0);
 // object will end up at 4,0,0 and not 6,0,0!!
```

## AUTHOR

**Simon Wunderlich**

Author of s3d
