1 | #VRML V2.0 utf8 |
2 | DEF GEN_ROOT Transform{ |
3 | children[ DEF GEN_TOUCH TouchSensor {} |
4 | Shape { geometry Sphere{} } ] } |
5 | DEF GENSCRIPT Script { |
6 | url "DynamicGen.class" |
7 | eventIn SFTime touched |
8 | eventOut MFNode addSphere } |
9 | ROUTE GEN_TOUCH.touchTime TO GENSCRIPT.touched |
10 | ROUTE GENSCRIPT.addSphere TO GEN_ROOT.addChildren |