Table of contents Chapter index Previous slide Next slide 473
Syntax: EXTERNPROTO

Creating new node types
Syntax: EXTERNPROTO
  • Prototypes are typically in a separate external file, referenced by an EXTERNPROTO
  • name, fields, events - as from PROTO, minus initial values
  • url - the URL of the prototype file
  • #name - name of PROTO in file
  • EXTERNPROTO BouncingBall [
        field SFFloat bounceHeight
        field SFTime  cycleInterval
    ] "bounce.wrl#BouncingBall"