Table of contents Chapter index Previous slide Next slide 461
Syntax: IS

Creating new node types
Syntax: IS
  • Interface items connected by IS need not have the same name as an item in the body, but often do

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