www.pudn.com > ballbed.rar > 15.10.wrl, change:2001-10-30,size:3061b


#VRML V2.0 utf8 
Viewpoint { 
	position 0.0 15.0 50.0 
	orientation	1.0 0.0 0.0 -0.35 
} 
Group { 
	children [ 
		Background { 
			skyColor [ 
				0.0 0.0 1.0 
			    0.2 0.2 0.8 
			    1.0 1.0 1.0 
			] 
			skyAngle [ 
			   1.047 1.571 
		   ] 
		  groundColor [ 
			   0.0 1.0 0.0 
			   0.0 0.5 0.2 
			   1.0 1.0 1.0 
		   ] 
		   groundAngle [ 
			   1.396 1.571 
		   ] 
	   } 
	    Transform { 
		   translation	0.0 -5.5 0.0 
		   rotation	0.0 1.0 0.0 0.0 
		   children	Shape { 
			   appearance Appearance { 
				   material Material { 
					   diffuseColor 0.2 0.0 0.8 
				   } 
			   } 
			   geometry Box { 
				   size 40 0.1 30 
			   } 
		   } 
	   } 
	 DEF ball1 Transform { 
			translation	3.0 5.0 0.0 
			  children Shape { 
				appearance Appearance { 
					material Material { 
						diffuseColor 0.5 0.3 0.7 
					} 
				} 
				geometry Sphere	{ 
					radius 1.0 
				} 
			} 
		} 
		 DEF ball2 Transform { 
			translation	0.0 5.0 0.0 
			  children Shape { 
				appearance Appearance { 
					material Material { 
						diffuseColor 0.3 0.7 0.5 
					} 
				} 
				geometry Sphere	{ 
					radius 1.0 
				} 
			} 
		} 
		DEF ball3 Transform { 
			translation	-3.0 5.0 0.0 
			  children Shape { 
				appearance Appearance { 
					material Material { 
						diffuseColor 0.7 0.5 0.3 
					} 
				} 
				geometry Sphere	{ 
					radius 1.0 
				} 
			} 
		} 
		DEF	clock1 TimeSensor { 
			cycleInterval 8 
			loop TRUE 
		} 
		DEF	clock2 TimeSensor { 
			cycleInterval 6 
			loop TRUE 
		} 
		DEF	clock3 TimeSensor { 
			cycleInterval 4 
			loop TRUE 
		} 
		DEF	path1 PositionInterpolator { 
			key	[ 
				0.00,0.10,0.20, 
				0.30,0.40,0.50, 
				0.60,0.70,0.80, 
				0.90,1.00 
			] 
			keyValue [ 
				3.0  5.0 0.0, 
				3.0  4.0 0.0, 
			    3.0  3.0 0.0, 
				3.0  2.0 0.0, 
				3.0  1.0 0.0, 
				3.0  0.0 0.0, 
				3.0 -1.0 0.0, 
				3.0 -2.0 0.0, 
				3.0 -3.0 0.0, 
				3.0 -4.0 0.0, 
				3.0 -5.0 0.0, 
 
           ] 
         } 
		 DEF path2 PositionInterpolator	{ 
				key	[ 
				0.00,0.10,0.20, 
				0.30,0.40,0.50, 
				0.60,0.70,0.80, 
				0.90,1.00 
			] 
			keyValue [ 
				0.0  5.0 0.0, 
				0.0  4.0 0.0, 
			    0.0  3.0 0.0, 
				0.0  2.0 0.0, 
				0.0  1.0 0.0, 
				0.0  0.0 0.0, 
				0.0 -1.0 0.0, 
				0.0 -2.0 0.0, 
				0.0 -3.0 0.0, 
				0.0 -4.0 0.0, 
				0.0 -5.0 0.0, 
 
           ] 
         } 
		 DEF path3 PositionInterpolator	{ 
				key	[ 
				0.00,0.10,0.20, 
				0.30,0.40,0.50, 
				0.60,0.70,0.80, 
				0.90,1.00 
			] 
			keyValue [ 
				-3.0  5.0 0.0, 
				-3.0  4.0 0.0, 
			    -3.0  3.0 0.0, 
				-3.0  2.0 0.0, 
				-3.0  1.0 0.0, 
				-3.0  0.0 0.0, 
				-3.0 -1.0 0.0, 
				-3.0 -2.0 0.0, 
				-3.0 -3.0 0.0, 
				-3.0 -4.0 0.0, 
				-3.0 -5.0 0.0, 
			] 
         } 
	 ] 
} 
ROUTE clock1.fraction_changed TO path1.set_fraction 
ROUTE clock2.fraction_changed TO path2.set_fraction 
ROUTE clock3.fraction_changed TO path3.set_fraction 
ROUTE path1.value_changed TO ball1.set_translation 
ROUTE path2.value_changed TO ball2.set_translation 
ROUTE path3.value_changed TO ball3.set_translation