<?xml version="1.0" encoding="UTF-8"?>
<X3D>
<Scene>
<Viewpoint position='0 10 12' orientation='1 0 0 -0.78'/>
<NavigationInfo
type='
"EXAMINE"'
/>
<Transform>
<Shape>
<Appearance>
<Material diffuseColor='0.6 0.3 0'/>
</Appearance>
<Box size='10 0.1 10'/>
</Shape>
<TouchSensor DEF='ThS'/>
</Transform>
<Group DEF='Balls-Gp'>
</Group>
<Script DEF='Sc'>
<field accessType='inputOnly' type='SFVec3f' name='set_hitPoint'/>
<field accessType='outputOnly' type='MFNode' name='addChildren'/>
<field accessType='initializeOnly' type='SFNode' name='Ball'>
<Shape>
<Appearance>
<Material diffuseColor='1 0 0'/>
</Appearance>
<Sphere radius='0.1'/>
</Shape>
</field>
<![CDATA[ecmascript:
function set_hitPoint(vec) {
var Tf = new SFNode ('Transform {}');
Tf.translation = vec;
Tf.children[0] = Ball;
addChildren[0] = Tf;
}
]]>
</Script>
<ROUTE fromNode='ThS' fromField='hitPoint_changed' toNode='Sc' toField='set_hitPoint'/>
<ROUTE fromNode='Sc' fromField='addChildren' toNode='Balls-Gp' toField='addChildren'/>
</Scene>
</X3D>