Search Unity

Question How to stick one object to another indepentently

Discussion in 'Physics' started by marmarisco860, Apr 25, 2023.

  1. marmarisco860

    marmarisco860

    Joined:
    Mar 28, 2020
    Posts:
    4
    I have a gameobject "Boat" and another object "character". The boat will move by itself. All I can move is the character on the boat. But, when the boat rotates, character doesn't rotate with it. I tried giving them physical material but it didn't work. How to do that?

    You can clearly understand watching the gif here
     
  2. rob11

    rob11

    Joined:
    Mar 7, 2017
    Posts:
    59
    Simply make the character a child of the boat's game object, so it's transform component will update according to the boat transform
     
    marmarisco860 likes this.
  3. marmarisco860

    marmarisco860

    Joined:
    Mar 28, 2020
    Posts:
    4
    It worked!! thanks