> 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/gameobject-components/lookatobject.md).

# LookAtObject

This components lets GameObject to rotate towards an Object

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

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

```java
new LookAtObject();
```

{% endtab %}

{% tab title="Methods" %}

```java
setTarget(GameObject t); // Sets the target to a GameObject

setTarget(Vector2 t); // Sets target to a Vector2

getTargetGameObject(); // Returns GameObject
```

{% endtab %}
{% endtabs %}
