Table of Contents Chapter Index Previous Slide Next Slide 352
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
        . . .
    }