Table of contents Chapter index Previous slide Next slide 443
A sample Java script

Writing program scripts with Java
A sample Java script
  • 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"
    
    }