SHARE
TWEET

Untitled

a guest Feb 7th, 2020 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void simulationStart()
  2. {
  3.  
  4. }
  5.  
  6. public void simulationStep()
  7. {  
  8.     int move = 10; // <-- Change this value
  9.    
  10.     for (int i = 0; i < eventParticleCount; i++)           
  11.     {
  12.         int sInx = tf.GetSimIndex(i);
  13.        
  14.         float eventAge = tf.GetEventAge(sInx);
  15.  
  16.         if (eventAge == 0)                 
  17.         {
  18.             Matrix3 pos = tf.GetTM(sInx);
  19.             pos.row4 = pos.row4+pos.row2*move;
  20.             tf.SetTM(sInx,pos);
  21.             //Print(pos.row4);
  22.  
  23.         }
  24.     }  
  25.    
  26. }
  27.  
  28. public void simulationStepThreaded(int startInx, int endInx, int threadInx)                
  29. {
  30.  
  31. }
  32.  
  33. public void postSimulationStep()
  34. {
  35.  
  36. }
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
Top