437

Writing program scripts with Java
Declaring a program script interface

  • For a Java program script, give the class file in the Script node's url field
  • A class file is a compiled Java program script
  • DEF Bouncer Script {
        field    SFFloat bounceHeight 3.0
        eventIn  SFFloat set_fraction
        eventOut SFVec3f value_changed
    
        url "bounce2.class"
    }