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

Writing program scripts with JavaScript
A sample JavaScript script
  • Calculations needed:
  • Compute new ball position
  • Send new position event
  • Use a ball position equation roughly based upon Physics
  • See comments in the VRML file for the derivation of the equation