Table of Contents Chapter Index Previous Slide Next Slide 369
Syntax: PROTO

Creating new node types
Syntax: PROTO
  • A PROTO statement declares a new node type
  • name - the new node type name
  • fields and events - interface to the prototype
  • PROTO BouncingBall [
        field SFFloat bounceHeight  1.0
        field SFTime  cycleInterval 1.0
    ] { . . . }