1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
|
3 | <X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'> |
4 | <head> |
5 | <meta name='title' content=' Rotor.x3d '/> |
6 | <meta name='created' content='1 September 2004'/> |
7 | <meta name='modified' content='20 October 2019'/> |
8 | <meta name='creator' content='Tay Yeong Kiang Winston'/> |
9 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/HovercraftSnr6Singapore/Rotor.x3d '/> |
10 | <meta name='description' content='Creates the motor rotor with touch sensor for rotating the blades.'/> |
11 | <meta name='license' content='../../license.html'/> |
12 | </head> |
13 | <Scene> |
14 | <WorldInfo title='Rotor.x3d'/> |
15 | <Viewpoint description='Rotor Side View' orientation='0 1 0 1.57' position='10 0 0'/> |
16 | <Group> |
17 |
<!-- ROUTE information for ROTOR_TRANSFORM node:
[from RotorPathInterpolator.value_changed to set_rotation
]
-->
<Transform DEF='ROTOR_TRANSFORM'> |
18 | <Group DEF='Rotor'> |
19 | <Shape> |
20 | <Extrusion crossSection='1.00 0.00 0.92 -0.38 0.71 -0.71 0.38 -0.92 0.00 -1.00 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1.00 -0.00 -0.92 0.38 -0.71 0.71 -0.38 0.92 0.00 1.00 0.38 0.92 0.71 0.71 0.92 0.38 1.00 0.00' scale='0.2 0.2 0.15 0.15 0.1 0.1' spine='0 0 0.5 0 0 0.1 0 0 0'/> |
21 | <Appearance> |
22 | <Material ambientIntensity='0.0' diffuseColor='0.0 0.0 0.0' shininess='0.056122' specularColor='0.918367 0.910614 0.885116'/> |
23 | </Appearance> |
24 | </Shape> |
25 | </Group> |
26 | |
27 | <Shape> |
28 | <Extrusion crossSection='1.00 0.00 0.92 -0.38 0.71 -0.71 0.38 -0.92 0.00 -1.00 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1.00 -0.00 -0.92 0.38 -0.71 0.71 -0.38 0.92 0.00 1.00 0.38 0.92 0.71 0.71 0.92 0.38 1.00 0.00' orientation='0 1 0 0 0 1 0 1.2 0 1 0 1.5 0 1 0 1.7' scale='0.05 0.1 0.05 0.15 0.05 0.15 0.05 0.15' spine='0 0 0.1 0 0.6 0.1 0 2 0.1 0 2.5 0.1'/> |
29 | <Appearance> |
30 | <Material ambientIntensity='0.0' diffuseColor='0.0 0.0 0.0' shininess='0.056122' specularColor='0.918367 0.910614 0.885116'/> |
31 | </Appearance> |
32 | </Shape> |
33 | </Group> |
34 | <Transform rotation='0 0 1 1.57'> |
35 | <Group USE='Blade'/> |
36 | </Transform> |
37 | <Transform rotation='0 0 1 -1.57'> |
38 | <Group USE='Blade'/> |
39 | </Transform> |
40 | <Transform rotation='0 0 1 3.14'> |
41 | <Group USE='Blade'/> |
42 | </Transform> |
43 | </Transform> |
44 |
<!-- ROUTE information for MyTouchSensor node:
[from touchTime to CLOCK.set_startTime
]
-->
<TouchSensor DEF='MyTouchSensor' description='click to start'/> |
45 |
<!-- ROUTE information for CLOCK node:
[from MyTouchSensor.touchTime to set_startTime
]
[from fraction_changed to RotorPathInterpolator.set_fraction
]
-->
<TimeSensor DEF='CLOCK' cycleInterval='4'/> |
46 |
<!-- ROUTE information for RotorPathInterpolator node:
[from CLOCK.fraction_changed to set_fraction
]
[from value_changed to ROTOR_TRANSFORM.set_rotation
]
-->
<OrientationInterpolator DEF='RotorPathInterpolator' key='0 0.5 1' keyValue='0.0 0.0 1.0 0.0 0.0 0.0 1.0 3.14 0.0 0.0 1.0 6.28'/> |
47 | </Group> |
48 | < ROUTE fromNode='MyTouchSensor' fromField='touchTime' toNode='CLOCK' toField='set_startTime'/> |
49 | < ROUTE fromNode='CLOCK' fromField='fraction_changed' toNode='RotorPathInterpolator' toField='set_fraction'/> |
50 | < ROUTE fromNode='RotorPathInterpolator' fromField='value_changed' toNode='ROTOR_TRANSFORM' toField='set_rotation'/> |
51 | </Scene> |
52 | </X3D> |
Event Graph ROUTE Table entries with 3 ROUTE connections total, showing X3D event-model relationships for this scene.
Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.
MyTouchSensor
TouchSensor touchTime SFTime |
CLOCK
TimeSensor set_startTime SFTime |
then
|
CLOCK
TimeSensor fraction_changed SFFloat |
RotorPathInterpolator
OrientationInterpolator set_fraction SFFloat |
then
|
RotorPathInterpolator
OrientationInterpolator value_changed SFRotation |
ROTOR_TRANSFORM
Transform set_rotation SFRotation |
<!--
Color-coding legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->