SHARE
TWEET

Untitled

a guest Aug 27th, 2015 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   @Override
  2.   public void update()
  3.   {
  4.     time++;
  5.    
  6.     int currentAlphaKey = 0;
  7.  
  8.     for (int a = 0; a < alphaEnvelopeKeys.length-1; a++)
  9.     {
  10.       if (alphaEnvelopeKeys[a] <= time && time <= alphaEnvelopeKeys[a + 1])
  11.       {
  12.         currentAlphaKey = a;
  13.       }
  14.       System.out.println(currentAlphaKey);
  15.     }
  16.     alpha = alphaEnvelopeValues[currentAlphaKey]+
  17.             ((alphaEnvelopeValues[currentAlphaKey+1]-alphaEnvelopeValues[currentAlphaKey])/
  18.             (alphaEnvelopeKeys[currentAlphaKey+1]-alphaEnvelopeKeys[currentAlphaKey]))*(time-alphaEnvelopeKeys[currentAlphaKey]);
  19.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top