Table of contents Chapter index Previous slide Next slide 469
A sample prototype use

Creating new node types
A sample prototype use
  • Body needed:
  • A ball shape inside a transform
  • An animation clock
  • A bouncing ball program script
  • Routes connecting it all together
  • PROTO BouncingBall [
    
        . . .
    
    ] {
    
        DEF Ball Transform {
    
            children [
    
                Shape { . . . }
    
            ]
    
        }
    
        DEF Clock   TimeSensor { . . . }
    
        DEF Bouncer Script { . . . }
    
        ROUTE . . .
    
    }