446

Writing program scripts with Java
Java script example code

  • Give it the same interface as the JavaScript example
    DEF Bouncer Script {
        field    SFFloat bounceHeight 3.0
        eventIn  SFFloat set_fraction
        eventOut SFVec3f value_changed
    
        url "bounce2.class"
    }