tut18a.wrl

#VRML V2.0 utf8

WorldInfo {
	title "Floppy's VRML97 Tutorial Example 18a"
	info ["(C) Copyright 1999 Vapour Technology"
 	        "vrmlguide@vapourtech.com"]
}

Group {
	children [
		Group {
			children [
				DEF POSTOUCH TouchSensor {}
				Shape {
					appearance Appearance {
						material Material {
							diffuseColor 1 0 0
						}	
					}
					geometry Sphere { 
						radius 3.0	
					}
				}
			]
		}
		DEF SNDTOUCH TouchSensor {}
		DEF BALL Transform {
			children [
				Sound {
					minFront 10
					minBack 10
					maxFront 50
					maxBack 50
					source DEF SOUND AudioClip {
						url "pop.wav"
					}
				}
				Shape {
					appearance Appearance {
						material Material {
							diffuseColor 1 1 0
						}	
					}
					geometry Sphere { 
						radius 0.1
					}
				}
			]
		}
	]
}
ROUTE SNDTOUCH.touchTime TO SOUND.startTime
ROUTE POSTOUCH.hitPoint_changed TO BALL.translation

Generated by GNU enscript 1.6.1.

© Copyright 1999 Vapour Technology - vrmlguide@vapourtech.com