That does not solve my problem, but thanks anyway for the advice!<br><br>I will try to explain myself better. I have an object (the &#39;plug&#39;) connected with a ROUTE to an on/off button. What I want to do is that, when I move another object (i.e. a bulb) over the plug, that object will react (i.e. the bulb would start shinning). Both the &#39;plug&#39; and the &#39;bulb&#39; should be movable.<br>

<br>An event telling when two objects collide  (so that I could check when the &#39;bulb&#39; collides the &#39;plug&#39;) would solve it. Otherwise I cannot think of a ECMAscript that solved this issue...<br><br>The second solution is implementing my own SceneGraph in java, keeping the current positions of the objects (bulb and plug)  and perform the collision detection on my own.<br>
<br>If X3D ROUTEs could send events to a position in the space, so that they stimulated any object located in that position, the problem would be easily solved...<br><br>Thanks!<br>
<br><div class="gmail_quote">El 21 de agosto de 2009 21:51, Joe D Williams <span dir="ltr">&lt;<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>&gt;</span> escribió:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

You can add/remove routes using SAI script.<br>
Otherwise I don&#39;t quite understand what you are trying to do.<br>
Best Regards,<br>
Joe<br>
<br>
----- Original Message ----- From: &quot;diego martínez&quot; &lt;<a href="mailto:diegomp1982@gmail.com" target="_blank">diegomp1982@gmail.com</a>&gt;<br>
To: &lt;<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>&gt;<br>
Sent: Friday, August 21, 2009 3:15 AM<br>
Subject: [X3D-Public] ROUTEs can send an event to a point in the 3D space?<div><div></div><div><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello everybody!<br>
<br>
This is my first message to the list, even though I have some experience<br>
using the good old VRML.<br>
<br>
I would like to add a plug in a Virtual Environment (VE), so that any object<br>
placed over the plug (collision) would receive events to turn it on or off.<br>
<br>
My initial idea was to define prototypes with a boolean input field for the<br>
different objects (bulbs, toys,...) I wanted to plug. These objects would be<br>
moved over a table using a PlaneSensor. Then I would connect a button with a<br>
TouchSensor that would send its events to the position of the &#39;plug&#39; in the<br>
3D space.  I would like this plug to be also movable using a PlaneSensor.<br>
<br>
Unluckily, after checking X3D specification, I think this approach is not<br>
possible.<br>
<br>
How could I implement such a behaviour in X3D?<br>
I have tried to create an script executed by the objects likely to be<br>
connected to the plug, in which I would manually check the collision among<br>
these objects, but I would need to get the 3D position of both the plug and<br>
the object. Is there any way to do this?<br>
<br>
Would I need to use SAI and have a parallel SceneGraph -an external java<br>
SceneGraph- definition that allows me to check such things??<br>
<br>
Thanks in advance!!<br>
<br>
</blockquote>
<br>
<br></div></div>
--------------------------------------------------------------------------------<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
_______________________________________________<br>
X3D-Public mailing list<br>
<a href="mailto:X3D-Public@web3d.org" target="_blank">X3D-Public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br>