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

Distance and direction from given path

Discussion in 'Navigation' started by xavierallem, Apr 15, 2021.

  1. xavierallem

    xavierallem

    Joined:
    Sep 7, 2020
    Posts:
    1
    Guys I am comparatively noob in unity 3d so don't judge me.

    So I have a start position and end position in which I'm using star algorithm to find the shortest path. I have done this watching a tutorial.
    Now my aim is that from this given path I want to display say from START position "Forward 10 metres" "turn right and go forward for 2 metres" or "left and forward for 2" vice versa. Want to get the real time distance and direction as we get from Google maps