Search Unity

Resolved How can I make a game objects follow each other like a snake?

Discussion in 'Scripting' started by Noodle_Meanie, Mar 18, 2023.

  1. Noodle_Meanie

    Noodle_Meanie

    Joined:
    Sep 11, 2021
    Posts:
    110
    I am currently making the final boss for my game. What I want is multiple gameobjects to follow each other like it's one big snake. I have a head piece, and many body pieces, so how can I make it so when the head moves, the body pieces follow the same way the head moved, like if the head moved up and down, the body pieces would follow the same way going up and down? Sorry if this is confusing.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,674
    Here was my take on it, examples of following at a distance as well as following at a time.
     

    Attached Files: