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 Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Question Finding the vertexes of an edge from a Physics2D.Raycast

Discussion in '2D' started by mcolluracad, Mar 22, 2023.

  1. mcolluracad

    mcolluracad

    Joined:
    Oct 16, 2021
    Posts:
    1
    upload_2023-3-21_23-47-34.png

    Is there any way to obtain the vertexes of the edge I'm intersecting with a 2D raycast? I'm trying to trace a path along the surface of a CompositeCollider2D starting from the intersection point of the RaycastHit2D.