Search Unity

How could I make an object extend between two objects, like a line between points?

Discussion in '2D' started by CharliePatton, Jan 20, 2020.

  1. CharliePatton

    CharliePatton

    Joined:
    Oct 7, 2017
    Posts:
    4
    What I'm looking for can be seen here at ~4:30, with the boss 'Black Swing' and his sword being connected by an arm. I'm assuming that this was done with code and not animations, as I can't think of any way without code to do it. Help would be appreciated in duplicating this effect!
     
  2. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    @CharliePatton

    Arm could be just a line renderer... and sword can be moved with code or with single animation clip, or animator + state machine with several clips.

    Edit: there will always be some amount of "code" you can't avoid that, even if you would do something with some visual system.