# Setting Up the Object

#### Create the Object:

Create the object you want to push and pull in your Unity scene. Make sure it has a collider attached to it.

<figure><img src="/files/J3sZqR3LGwczpwXOXpwl" alt=""><figcaption></figcaption></figure>

#### Attach Script:

Attach the PushPullObject script onto the object. This script will handle the push and pull collision and detection logic. A Rigidbody component will be automatically attached as well.

<figure><img src="/files/scO01uOUmP29DAUobog4" alt=""><figcaption></figcaption></figure>

#### Set Script Variables:

In the Inspector window, set up the variables of the PushPullObject script according to your requirements. *Important*: The player and one tag for the player needs to be set.

<figure><img src="/files/9sdflt576ZWuBMtnEBBc" alt=""><figcaption></figcaption></figure>

#### Tag Configuration:

Ensure that the object has tags used to identify it. You can use either Unity's tag system or Malbers Tag-System for this purpose.

<figure><img src="/files/TPfxlyJzqZUobvHLBdQj" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://andres-organization-9.gitbook.io/luxus-1-assets/animal-controller-states/push-and-pull/step-by-step-guide/setting-up-the-object.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
