486

Creating new node types
Prototype example code

  • 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 . . .
    }