<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic The distance between two locations in A*Star Navigator in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/the-distance-between-two-locations-in-a-star-navigator/m-p/13589040#M85338</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi,&lt;/P&gt;
 &lt;P&gt;I am using A*Star Navigator for navigation of task executer through an area, with some pre-defined locations (with exact x and y coordinates) to travel to. There are barriers, dividers along the way.&lt;/P&gt;
 &lt;P&gt;I need to know the exact distance between any two locations. I have tried the following methods to get the distance between two locations:&lt;/P&gt;
 &lt;P&gt;1. computation, based on 'Distance Formula for Two Points'&lt;/P&gt;
 &lt;P&gt;2. using flexscript command 'distancetotravel'&lt;/P&gt;
 &lt;P&gt;But both methods do not give the correct distance as compared to the the A*Star Navigator actual travel distance.&lt;/P&gt;
 &lt;P&gt;How do I get the correct distance by script (without running simulation) for A*Star Navigator?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thanks&lt;/P&gt;
 &lt;P&gt;Chong&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 27 Jan 2025 02:43:21 GMT</pubDate>
    <dc:creator>cschong123</dc:creator>
    <dc:date>2025-01-27T02:43:21Z</dc:date>
    <item>
      <title>The distance between two locations in A*Star Navigator</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/the-distance-between-two-locations-in-a-star-navigator/m-p/13589040#M85338</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi,&lt;/P&gt;
 &lt;P&gt;I am using A*Star Navigator for navigation of task executer through an area, with some pre-defined locations (with exact x and y coordinates) to travel to. There are barriers, dividers along the way.&lt;/P&gt;
 &lt;P&gt;I need to know the exact distance between any two locations. I have tried the following methods to get the distance between two locations:&lt;/P&gt;
 &lt;P&gt;1. computation, based on 'Distance Formula for Two Points'&lt;/P&gt;
 &lt;P&gt;2. using flexscript command 'distancetotravel'&lt;/P&gt;
 &lt;P&gt;But both methods do not give the correct distance as compared to the the A*Star Navigator actual travel distance.&lt;/P&gt;
 &lt;P&gt;How do I get the correct distance by script (without running simulation) for A*Star Navigator?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thanks&lt;/P&gt;
 &lt;P&gt;Chong&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Jan 2025 02:43:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/the-distance-between-two-locations-in-a-star-navigator/m-p/13589040#M85338</guid>
      <dc:creator>cschong123</dc:creator>
      <dc:date>2025-01-27T02:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: The distance between two locations in A*Star Navigator</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/the-distance-between-two-locations-in-a-star-navigator/m-p/13589041#M85339</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Can you attach an example model. "distancetotravel()" returns the correct distance in my test.&lt;/P&gt;&lt;P&gt;For travel to coordinates you can use the "getCost()" method of the navigator class.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/89729-travel-distance.fsm" target="_blank"&gt;travel-distance.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Jan 2025 10:01:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/the-distance-between-two-locations-in-a-star-navigator/m-p/13589041#M85339</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2025-01-27T10:01:49Z</dc:date>
    </item>
  </channel>
</rss>

