Search Unity

How to create object linking like in LEGO

Discussion in 'Physics' started by JustKolyas, Feb 10, 2018.

  1. JustKolyas

    JustKolyas

    Joined:
    Jan 10, 2017
    Posts:
    6
  2. G-Power2

    G-Power2

    Joined:
    Sep 9, 2018
    Posts:
    5
    Hello, there.
    I could maybe help you with this one, but your GIF link doesn't work.
    Could you perhaps sent it as a file?
    Regards.

    —G-Power
     
  3. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,770
    Nearly 2 years old necro :/
     
  4. Bordeaux_Fox

    Bordeaux_Fox

    Joined:
    Nov 14, 2018
    Posts:
    589
    Well, it depends on physics behaviour of the objects. Unity gives you these options to link objects togehter:

    1. If the two objects are rigidbodies, you can connect them with a joint component.
    2. Make the one object a child of the other object.
    3. The one object could follow the transform of the other object with a script running every frame.