417

Writing program scripts with JavaScript
JavaScript script example code

  • Create a Bouncing ball interpolator that computes a gravity-like vertical bouncing motion from a fractional time input

  • Nodes needed:
    DEF Ball Transform { . . . }
    DEF Clock TimeSensor { . . . }
    DEF Bouncer Script { . . . }