~holger-seelig/cobweb.js/trunk

« back to all changes in this revision

Viewing changes to cobweb.js/tests/Components/PointingDeviceSensor/test.x3d

  • Committer: Holger Seelig
  • Date: 2017-08-22 04:53:24 UTC
  • Revision ID: holger.seelig@yahoo.de-20170822045324-4of4xxgt79669gbt
Switched to npm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
3
 
<X3D profile='Full' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.3.xsd'>
4
 
  <head>
5
 
    <meta name='comment' content='World of Titania'/>
6
 
    <meta name='created' content='Sun, 05 Apr 2015 09:50:34 GMT'/>
7
 
    <meta name='creator' content='Holger Seelig'/>
8
 
    <meta name='generator' content='Titania V0.7.7, http://titania.create3000.de'/>
9
 
    <meta name='modified' content='Wed, 08 Apr 2015 11:59:35 GMT'/>
10
 
  </head>
11
 
  <Scene>
12
 
    <Transform>
13
 
      <Transform DEF='Box_1'>
14
 
        <Shape>
15
 
          <Appearance>
16
 
            <Material/>
17
 
          </Appearance>
18
 
          <Box/>
19
 
        </Shape>
20
 
      </Transform>
21
 
      <TouchSensor DEF='_1'
22
 
          description='TouchSensor'/>
23
 
    </Transform>
24
 
    <Transform DEF='Box'
25
 
        translation='3.16243 0 0'>
26
 
      <Shape>
27
 
        <Appearance>
28
 
          <Material/>
29
 
        </Appearance>
30
 
        <Box/>
31
 
      </Shape>
32
 
    </Transform>
33
 
    <Script DEF='_2'>
34
 
      <field accessType='inputOnly' type='SFVec2f' name='set_texCoord'/>
35
 
      <field accessType='inputOnly' type='SFVec3f' name='set_normal'/>
36
 
      <field accessType='inputOnly' type='SFVec3f' name='set_point'/>
37
 
<![CDATA[javascript:
38
 
 
39
 
function set_texCoord (value)
40
 
{
41
 
        print ("texCoord: ", value);
42
 
}
43
 
 
44
 
function set_normal (value)
45
 
{
46
 
        print ("normal: ", value);
47
 
}
48
 
 
49
 
function set_point (value)
50
 
{
51
 
        print ("point: ", value);
52
 
}
53
 
]]> 
54
 
    </Script>
55
 
    <ROUTE fromNode='_1' fromField='hitTexCoord_changed' toNode='_2' toField='set_texCoord'/>
56
 
    <ROUTE fromNode='_1' fromField='hitNormal_changed' toNode='_2' toField='set_normal'/>
57
 
    <ROUTE fromNode='_1' fromField='hitPoint_changed' toNode='_2' toField='set_point'/>
58
 
  </Scene>
59
 
</X3D>