{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"Rotor.x3d"
          },
          {
            "@name":"created",
            "@content":"1 September 2004"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"creator",
            "@content":"Tay Yeong Kiang Winston"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/HovercraftSnr6Singapore/Rotor.x3d"
          },
          {
            "@name":"description",
            "@content":"Creates the motor rotor with touch sensor for rotating the blades."
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"26 March 2026"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, https://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"reference",
            "@content":"X3D JSON encoding: https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "WorldInfo":
            {
              "@title":"Rotor.x3d"
            }
          },
          { "Viewpoint":
            {
              "@description":"Rotor Side View",
              "@orientation":[0,1,0,1.57],
              "@position":[10,0,0]
            }
          },
          { "Group":
            {
              "-children":[
                { "Transform":
                  {
                    "@DEF":"ROTOR_TRANSFORM",
                    "-children":[
                      { "Group":
                        {
                          "@DEF":"Rotor",
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "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]
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@ambientIntensity":0.0,
                                            "@diffuseColor":[0.0,0.0,0.0],
                                            "@shininess":0.056122,
                                            "@specularColor":[0.918367,0.910614,0.885116]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Group":
                        {
                          "@DEF":"Blade",
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "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]
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@ambientIntensity":0.0,
                                            "@diffuseColor":[0.0,0.0,0.0],
                                            "@shininess":0.056122,
                                            "@specularColor":[0.918367,0.910614,0.885116]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@rotation":[0,0,1,1.57],
                          "-children":[
                            { "Group":
                              {
                                "@USE":"Blade"
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@rotation":[0,0,1,-1.57],
                          "-children":[
                            { "Group":
                              {
                                "@USE":"Blade"
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@rotation":[0,0,1,3.14],
                          "-children":[
                            { "Group":
                              {
                                "@USE":"Blade"
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                { "TouchSensor":
                  {
                    "@DEF":"MyTouchSensor",
                    "@description":"click to start"
                  }
                },
                { "TimeSensor":
                  {
                    "@DEF":"CLOCK",
                    "@cycleInterval":4
                  }
                },
                { "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]
                  }
                }
              ]
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"MyTouchSensor",
              "@toField":"set_startTime",
              "@toNode":"CLOCK"
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"CLOCK",
              "@toField":"set_fraction",
              "@toNode":"RotorPathInterpolator"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"RotorPathInterpolator",
              "@toField":"set_rotation",
              "@toNode":"ROTOR_TRANSFORM"
            }
          }
        ]
    }
  }
}