<?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 Re: How to detect if an object is on a surface of another object ? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-detect-if-an-object-is-on-a-surface-of-another-object/m-p/13580918#M78919</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Typically there aren't any sensors or triggers that checks physical attributes. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You can try it with a Proximity Agent System. It is a Tool of Toolbox.&lt;/LI&gt;&lt;LI&gt;You can rasterize a plane into small areas and compare them with location values of objects. You would check this in time intervals. For example the pattern of small areas could be pushed to a list. You pull from this list a value that fitts into the location of your operator.  &lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 02 May 2023 14:12:16 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2023-05-02T14:12:16Z</dc:date>
    <item>
      <title>How to detect if an object is on a surface of another object ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-detect-if-an-object-is-on-a-surface-of-another-object/m-p/13580917#M78918</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.2.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I need a function that determine if an object (operator) is on a surface of another object (box). For the red operator, the function must return 1, 0 for the other operators. The function must work on all places of the plan. How can I do it ? Thanks in advance&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1683021233053.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1516883i71DD3F943A9B2C22/image-size/large?v=v2&amp;amp;px=999" role="button" title="1683021233053.png" alt="1683021233053.png" /&gt;&lt;/span&gt;&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;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/67673-estsursurfaceobject.fsm" target="_blank"&gt;EstSurSurfaceObject.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 May 2023 09:52:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-detect-if-an-object-is-on-a-surface-of-another-object/m-p/13580917#M78918</guid>
      <dc:creator>nicolas_membrez4BM5L</dc:creator>
      <dc:date>2023-05-02T09:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if an object is on a surface of another object ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-detect-if-an-object-is-on-a-surface-of-another-object/m-p/13580918#M78919</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Typically there aren't any sensors or triggers that checks physical attributes. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You can try it with a Proximity Agent System. It is a Tool of Toolbox.&lt;/LI&gt;&lt;LI&gt;You can rasterize a plane into small areas and compare them with location values of objects. You would check this in time intervals. For example the pattern of small areas could be pushed to a list. You pull from this list a value that fitts into the location of your operator.  &lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 May 2023 14:12:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-detect-if-an-object-is-on-a-surface-of-another-object/m-p/13580918#M78919</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2023-05-02T14:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if an object is on a surface of another object ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-detect-if-an-object-is-on-a-surface-of-another-object/m-p/13580919#M78920</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can test if a point is coplanar and within a projected rectangle using vector maths. The Vec3 type has all the vector operations needed for this.&lt;/P&gt;&lt;P&gt;Here's an example of how you might set up the needed variables for comparing a cuboid shape and network node (point) location (without solving it for you).&lt;/P&gt;&lt;PRE&gt;Object o=Model.find("Shape1");
Object n=Model.find("NN1");
Vec3 Aloc=o.getLocation(0,0,1).project(o.up,model());
Vec3 Bloc=o.getLocation(0,1,1).project(o.up,model());
Vec3 Cloc=o.getLocation(0,0,0).project(o.up,model());
Vec3 Dloc=o.getLocation(1,0,1).project(o.up,model());
Vec3 Nloc=n.getLocation(0,0,0).project(n.up,model());
Vec3 AN=Nloc-Aloc;
Vec3 AB=Bloc-Aloc;
Vec3 AD=Dloc-Aloc;
Vec3 AC=Cloc-Aloc;
double ANdotAC=AN.dot(AC);
double ANdotAB=AN.dot(AB);
double ANdotAD=AN.dot(AD);&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 May 2023 14:36:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-detect-if-an-object-is-on-a-surface-of-another-object/m-p/13580919#M78920</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-05-02T14:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if an object is on a surface of another object ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-detect-if-an-object-is-on-a-surface-of-another-object/m-p/13580920#M78921</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Hi, thanks a lot. Finally, I did something similar. But your method seems more clean. I will implemented. Thanks a lot
&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 May 2023 15:06:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-detect-if-an-object-is-on-a-surface-of-another-object/m-p/13580920#M78921</guid>
      <dc:creator>nicolas_membrez4BM5L</dc:creator>
      <dc:date>2023-05-02T15:06:10Z</dc:date>
    </item>
  </channel>
</rss>

