Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Saving direction

Discussion in '2D' started by Neomedus, Jun 14, 2020.

  1. Neomedus

    Neomedus

    Joined:
    May 14, 2020
    Posts:
    47
    I'm looking to make a collision system where if an object is released on top of another object, the direction to the nearest side of the object being collided with is saved, and that direction is followed until the collider is exited.

    How would I save the direction and have it be followed?