跳动的盒子
#VRML V2.0 utf8 Transform{translation -5 0 0 children Shape { geometry Box { } appearance Appearance{ material Material{diffuseColor 1 0 0 } }} }Background{skyColor 1 1 1 } DEF TS TimeSensor { cycleInterval 10 loop TRUE } DEF PI PositionInterpolator { key [0 0.5 1] keyValue [-5 0 0 , 5 0 0, -5 0 0 ] } DEF T Transform{ translation -5 0 0 children Shape{ geometry Box{} appearance Appearance{ material Material { diffuseColor 1 0 0 } } } } ROUTE TS.fraction_changed TO PI.set_fraction ROUTE PI.value_changed TO T.translation Background{skyColor 1 1 1}
用户评论