💍
Luxus-1 Assets
  • 👋Welcome to Luxus-1 Assets
  • Animal Controller States
    • ☑️Push and Pull
      • PushPull Script
      • PushPullObject Script
      • Step-by-Step guide
        • Setting Up the Character
        • Setting Up the Object
        • Suggestions
        • Changes for 2.5D
      • ▶️Introduction Video
    • ▶️Zipline
    • 🛠️Rope Swing
    • 🛠️Boat Rowing
    • 🛠️Advanced Vaulting
    • ▶️Advanced Climbing
      • Setup Environment
      • Setup Detection
      • Setup Animation
      • State Variables
        • General Settings
        • Detection Settings Variables
        • Animation Settings
        • Input Settings
    • ☑️Pole Climb
    • 🛠️Pole Swing
    • ☑️Rope Hook
    • ☑️Balance
    • ☑️Walljump
Powered by GitBook
On this page
  1. Animal Controller States
  2. Push and Pull
  3. Step-by-Step guide

Setting Up the Object

PreviousSetting Up the CharacterNextSuggestions

Last updated 1 year ago

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.

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.

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.

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.

☑️