Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

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:
    65
    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:
    32,333
    Here was my take on it, examples of following at a distance as well as following at a time.
     

    Attached Files: