<!-- Click and drag to rotate shapes. Superfluous Group nodes removed. -->
<!--
FIRST_TRANSFORM ROUTE:
[
from FIRST_SPHERESENSOR.rotation_changed to set_rotation
]
-->
<
Transform DEF='
FIRST_TRANSFORM'
translation='
-2 0 0'>
<
Shape>
<
Box/>
<
Appearance DEF='
FIRST_APPEARANCE'>
<Material diffuseColor='.9 .5 .1' emissiveColor='.2 .1 .05'/>
</
Appearance>
</
Shape>
<!--
FIRST_SPHERESENSOR ROUTE:
[
from rotation_changed to FIRST_TRANSFORM.set_rotation
]
-->
<
SphereSensor DEF='
FIRST_SPHERESENSOR'
description='
click and drag to rotate'/>
</
Transform>
<!--
SECOND_TRANSFORM ROUTE:
[
from SECOND_SPHERESENSOR.rotation_changed to set_rotation
]
-->
<
Transform DEF='
SECOND_TRANSFORM'
translation='
2 0 0'>
<
Shape>
</
Shape>
<!--
SECOND_SPHERESENSOR ROUTE:
[
from rotation_changed to SECOND_TRANSFORM.set_rotation
]
-->
<
SphereSensor DEF='
SECOND_SPHERESENSOR'
description='
click and drag to rotate'/>
<
Transform DEF='
TRANSPARENT_CYLINDER_TRANSFORM'
translation='
0 -.2 0'>
<
Shape>
<
Sphere radius='
1.3'/>
<
Appearance>
<Material diffuseColor='.7 .7 .7' transparency='.5'/>
</
Appearance>
</
Shape>
</
Transform>
</
Transform>
<!-- Adding this Inline reference to another scene superimposes VRML coordinate system axes. -->
<
Transform scale='
4 4 4'>
</
Transform>
<!-- Note that we are connecting a rotation output to a rotation input in each of these ROUTEs. -->
<
ROUTE fromNode='
FIRST_SPHERESENSOR'
fromField='
rotation_changed'
toNode='
FIRST_TRANSFORM'
toField='
set_rotation'/>
<
ROUTE fromNode='
SECOND_SPHERESENSOR'
fromField='
rotation_changed'
toNode='
SECOND_TRANSFORM'
toField='
set_rotation'/>
<!-- Have some fun: have the first sensor route to the second transform, and vice versa. -->