PROTO state [
eventIn SFNode effect
exposedField MFColor color 0.2 0.2 0.4
]{
DirectionalLight { direction 0 -1 -1 }
Viewpoint { position 0 0 30 }
DEF BACK Background { skyColor IS color }
Script {
directOutput TRUE
eventIn SFNode effect IS effect
field SFNode back USE BACK
url "javascript:
DEF SCRIPT Script {
directOutput TRUE
field SFNode self USE SCRIPT
field SFFloat accel IS accel
field SFTime tick 0
field SFNode group USE GROUP
field SFNode state IS state
field SFInt32 id IS id
field SFNode object IS object
field SFNode ground USE GROUND
field SFFloat position 0
field SFFloat color 0.5
field SFFloat rotation 0
field SFInt32 sign 1
field SFFloat speed 1
eventIn SFFloat set_fraction
url "javascript: