Table of contents Chapter index Previous slide Next slide 415
A sample JavaScript script

Writing program scripts with JavaScript
A sample JavaScript script
  • Inputs and outputs needed:
  • Fractional time input
  • Position value output
  • DEF Bouncer Script {
        . . .
        eventIn  SFFloat set_fraction
        eventOut SFVec3f value_changed
        . . .
    }