Table of Contents Chapter Index Previous Slide Next Slide 371
Syntax: IS

Creating new node types
Syntax: IS
  • The IS syntax connects a prototype interface field, eventIn, or eventOut to the body

    PROTO BouncingBall [
        field SFFloat bounceHeight  1.0
        field SFTime  cycleInterval 1.0
    ] {
        . . .
        DEF Clock TimeSensor {
            cycleInterval IS cycleInterval
            . . .
        }
        . . .
    }