<?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 Inaccurate Raycasting with ArcGISCamera in ArcGIS Maps SDK for Unity Questions</title>
    <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/inaccurate-raycasting-with-arcgiscamera/m-p/1340902#M671</link>
    <description>&lt;P&gt;I'm using Unity 2022.3.11f1 on a MacBook with M2 Max, and&amp;nbsp;arcgis-maps-sdk-unity-1.3.0.&lt;/P&gt;&lt;P&gt;When doing raycasts to determine where the user clicked on the map, the raycasts being generated are sometimes not actually going where the pointer is. This causes the click position to be inaccurate, sometimes by up to a few hundred feet. I know it is the raycast that is the problem and not the conversion to lat/lon, since I added code to create a line to visualize the raycasts, and they line up with where the resulting hit positions are. The conversion to lat/lon from that point is also correct. Just the raycasts usually are not where the mouse position is.&lt;/P&gt;&lt;P&gt;This only happens when using the ArcGISCamera. It happens both in my project, and in the example projects at&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-maps-sdk-unity-samples" target="_blank"&gt;https://github.com/Esri/arcgis-maps-sdk-unity-samples&lt;/A&gt;&amp;nbsp;It also happens both in the unity editor and in builds. I also did a build for Windows and it happens there too.&lt;/P&gt;&lt;P&gt;It doesn't happen if I'm using the regular unity camera in a non-arcgis project. Those raycasts are always right where the mouse is.&lt;/P&gt;&lt;P&gt;Here is a screen recording demonstrating it:&amp;nbsp;&lt;A href="https://pages.process-solutions-group.com/sites/storage/Screen_Recording_2023-10-24_at_9.31.28_AM.mov" target="_blank" rel="noopener"&gt;Screen_Recording_2023-10-24_at_9.31.28_AM.mov&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 14:19:54 GMT</pubDate>
    <dc:creator>joshb08</dc:creator>
    <dc:date>2023-10-24T14:19:54Z</dc:date>
    <item>
      <title>Inaccurate Raycasting with ArcGISCamera</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/inaccurate-raycasting-with-arcgiscamera/m-p/1340902#M671</link>
      <description>&lt;P&gt;I'm using Unity 2022.3.11f1 on a MacBook with M2 Max, and&amp;nbsp;arcgis-maps-sdk-unity-1.3.0.&lt;/P&gt;&lt;P&gt;When doing raycasts to determine where the user clicked on the map, the raycasts being generated are sometimes not actually going where the pointer is. This causes the click position to be inaccurate, sometimes by up to a few hundred feet. I know it is the raycast that is the problem and not the conversion to lat/lon, since I added code to create a line to visualize the raycasts, and they line up with where the resulting hit positions are. The conversion to lat/lon from that point is also correct. Just the raycasts usually are not where the mouse position is.&lt;/P&gt;&lt;P&gt;This only happens when using the ArcGISCamera. It happens both in my project, and in the example projects at&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-maps-sdk-unity-samples" target="_blank"&gt;https://github.com/Esri/arcgis-maps-sdk-unity-samples&lt;/A&gt;&amp;nbsp;It also happens both in the unity editor and in builds. I also did a build for Windows and it happens there too.&lt;/P&gt;&lt;P&gt;It doesn't happen if I'm using the regular unity camera in a non-arcgis project. Those raycasts are always right where the mouse is.&lt;/P&gt;&lt;P&gt;Here is a screen recording demonstrating it:&amp;nbsp;&lt;A href="https://pages.process-solutions-group.com/sites/storage/Screen_Recording_2023-10-24_at_9.31.28_AM.mov" target="_blank" rel="noopener"&gt;Screen_Recording_2023-10-24_at_9.31.28_AM.mov&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 14:19:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/inaccurate-raycasting-with-arcgiscamera/m-p/1340902#M671</guid>
      <dc:creator>joshb08</dc:creator>
      <dc:date>2023-10-24T14:19:54Z</dc:date>
    </item>
  </channel>
</rss>

