diff --git a/assignments/DirectedStudy/Tobias/Scenes/Meb.x3d b/assignments/DirectedStudy/Tobias/Scenes/Meb.x3d index da956603d49e276c8b8fcd2a3f0d5321a7c5098b..189b5f68bf51d6c5b0cb964e9f1d588e71555b78 100644 --- a/assignments/DirectedStudy/Tobias/Scenes/Meb.x3d +++ b/assignments/DirectedStudy/Tobias/Scenes/Meb.x3d @@ -28,6 +28,7 @@ <!-- Additional authoring resources for meta-tags: http://www.dublincore.org/documents/dcmi-terms http://www.dublincore.org/documents/dces http://www.w3.org/TR/html4/struct/global.html#h-7.4.4 http://vancouver-webpages.com/META http://vancouver-webpages.com/META/about-mk-metas2.html Additional authoring resources for language codes: http://www.rfc-editor.org/rfc/bcp/bcp47.txt http://www.loc.gov/standards/iso639-2/langhome.html http://www.iana.org/numbers.html#L --> </head> <Scene> + <!-- Authoring hint: these axes are aligned within local coordinate system --> <Transform DEF='CoordinateAxesAdjustedScale' scale='4 4 4'> <Inline DEF='CoordinateAxes' url='"../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "../../../Savage/Tools/Authoring/CoordinateAxes.x3d" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "https://savage.nps.edu/Savage/Tools/Authoring/CoordinateAxes.x3d" "../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "../../../Savage/Tools/Authoring/CoordinateAxes.wrl" "http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "https://savage.nps.edu/Savage/Tools/Authoring/CoordinateAxes.wrl"'/> @@ -107,6 +108,11 @@ </Shape> </Transform> <!-- Grouping the car for rotation --> + <TimeSensor DEF="CarTimeInterval" cycleInterval="12" loop = "true"/> + <OrientationInterpolator DEF='SpinCar' key='0 1 2' keyValue='0 1 0 0 0 1 0 3.14 0 1 0 6.28'/> + <ROUTE fromField='fraction_changed' fromNode='CarTimeInterval' toField='set_fraction' toNode='SpinCar'/> + <Transform DEF="CarRotation"> + <ROUTE fromField='value_changed' fromNode='SpinCar' toField='rotation' toNode='CarRotation'/> <Group DEF='Car'> <Transform rotation='0 1 0 1.27'> <Transform rotation='0 0 1 1.57' translation='-1 0.6 -2.1'> @@ -140,7 +146,7 @@ <Transform rotation='0 0 1 1.57' translation='1 0.6 2.1'> <Group USE='Tire'/> </Transform> - <!-- Boundary --> + <!-- Battery --> <Transform translation='0 0.5 0'> <Shape> @@ -154,6 +160,7 @@ </Transform> </Transform> </Group> + </Transform> <!-- Boundary --> <Transform translation='0 0.5 0'> <Shape>