Advertisement
Guest User

Untitled

a guest
Feb 7th, 2020
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement