1.会动的摆球 #VRML V2.0 utf8 Background {skyColor .6 .6 1} Transform {translation 0 -2.5 0 children [Shape {appearance Appearance { material Material{diffuseColor 0 1 1} } geometry Box {size 10 1 1}} ]} Transform {translation 4 0 0 children [Shape {appearance Appearance{ material Material {diffuseColor 1 0 1} }geometry Box {size 0.5 5.8 0.6}} ]} Transform {translation -4 0 0 children [Shape {appearance Appearance{ material Material {diffuseColor 1 0 1} }geometry Box {size 0.5 5.8 0.6}} ]} Transform {translation 0 2.5 0 rotation 0 0 1 1.571 children [Shape { appearance Appearance {material Material { diffuseColor .5 0 1}} geometry Cylinder {radius 0.2 height 7.5}}]} DEF hk Transform { children [Group {children [ Transform {translation 0 -1.42 0 children [Shape {appearance Appearance { material Material {diffuseColor 2 1 1}} geometry Sphere {radius 0.3} }]} Transform {translation 0 0.6 0 children [Shape {appearance Appearance { material Material {diffuseColor 0 .8 1}} geometry Cylinder {radius 0.1 height 3.5} }]} ]} ]} DEF left Transform { translation -1.2 0 0 center 0 2.35 0 children [USE hk ]} Transform { translation 0.6 0 0 rotation 0 0 1 0 children [USE hk ]} Transform { translation -.6 0 0 rotation 0 0 1 0 children [USE hk ]} DEF right Transform { translation 1.2 0 0 center 0 2.35 0 children [USE hk ]} DEF time TimeSensor { cycleInterval 1 loop TRUE enabled TRUE } DEF z1 OrientationInterpolator { key [0 0.25 0.5 0.75 1] keyValue [ 0 0 1 0, 0 0 1 0.5, 0 0 1 0, 0 0 1 0, 0 0 1 0,]} DEF z2 OrientationInterpolator { key [0 0.25 0.5 0.75 1] keyValue [ 0 0 1 0, 0 0 1 0, 0 0 1 0, 0 0 1 -0.5, 0 0 1 0,]} ROUTE time.fraction_changed TO z1.set_fraction ROUTE time.fraction_chang...