DEF Box1 Transform { ... DEF Start TouchSensor {} ...} |
DEF DATA Transform { } |
DEF BxAction Script { |
eventIn SFBool isActive |
field SFNode node USE DATA // A node to add these objects |
field SFInt32 cone_count 0 |
url "vrmlscript: |
function isActive(value,time) |
{ if(value==true) |
{ node.addChildren = Browser.createVrmlFromString(' DEF Bx_'+ |
cone_count+' Transform { children Shape { geometry Box {} }}'); |
cone_count++;} |
}" } |
ROUTE Start.isActive TO BxAction.isActive |