From 2e98ec64d914cef2d3afb3f996a2c0868cf9bbd0 Mon Sep 17 00:00:00 2001 From: Tobias Brennenstuhl <tobias.brennenstuhl.gy@nps.edu> Date: Thu, 28 Nov 2019 11:03:07 -0800 Subject: [PATCH] --- assignments/DirectedStudy/Tobias/Scenes/Meb.x3d | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/assignments/DirectedStudy/Tobias/Scenes/Meb.x3d b/assignments/DirectedStudy/Tobias/Scenes/Meb.x3d index da95660..189b5f6 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> -- GitLab