# 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="https://187838865-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjoxzeUVDkRwW8AmzQBoq%2Fuploads%2FPSCvNKZ8qCrB9fg0rAYB%2Fimage.png?alt=media&#x26;token=86c35b8e-656d-43cd-b49a-cb4aee379fe8" 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="https://187838865-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjoxzeUVDkRwW8AmzQBoq%2Fuploads%2FnFtXFZCdQl3T5nFV4B3x%2Fimage.png?alt=media&#x26;token=2ed7fa68-24c8-47a1-a878-8127a1b0e0ac" 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="https://187838865-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjoxzeUVDkRwW8AmzQBoq%2Fuploads%2FYJvlKqWuSv5WH9f7gj3p%2Fimage.png?alt=media&#x26;token=73db5377-ff0a-47bd-9f79-e339cb823981" 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="https://187838865-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjoxzeUVDkRwW8AmzQBoq%2Fuploads%2F6iGhXh9YfXSP5J9pJ0bF%2Fimage.png?alt=media&#x26;token=a8737f1b-f5f9-4315-8e68-871d8d7c7b77" alt=""><figcaption></figcaption></figure>
