> For the complete documentation index, see [llms.txt](https://kree.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kree.gitbook.io/documentation/core-components/transform.md).

# Transform

This component handles the position, scale, and rotation of GameObject and User Interfaces

> Component Author: [Jabo](https://github.com/jabo-bernardo)\
> Release Date: April 11, 2020

{% tabs %}
{% tab title="Usage" %}

```java
new Transform();
```

{% endtab %}

{% tab title="Methods" %}

```java
translate(Vector2 by); // Move the position by the given Vector2

getPosition(); // Returns Vector2

getScale(); // Returns Vector2

getRotation(); // Returns float

setScale(Vector2 scale); // Change the scale

setPosition(Vector2 position); // Change the position
```

{% endtab %}
{% endtabs %}
