449

Writing program scripts with Java
Java script example code

  • Initialization actions needed:
  • Get the value of the bounceHeight field
  • Get the value_changedObj eventOut object
  • public void initialize( )
    {
        SFFloat obj = (SFFloat) getField( "bounceHeight" );
        bounceHeight = (float) obj.getValue( );
        value_changedObj = (SFVec3f) getEventOut( "value_changed" );
    }