406

Introducing script use
Program script example code

DEF Clock TimeSensor { . . . }

DEF Ball Transform { . . . }

DEF Bouncer Script {
    field    SFFloat bounceHeight 3.0
    eventIn  SFFloat set_fraction
    eventOut SFVec3f value_changed
    url "vrmlscript: . . ."
}

ROUTE Clock.fraction_changed TO Bouncer.set_fraction
ROUTE Bouncer.value_changed  TO Ball.set_translation