Guest User

Untitled

a guest
Jul 15th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. void execute() {
  2. for (u32 f = 0; f < numForces; f++)
  3. {
  4. u32 length = end - start;
  5. PhysicalObject* arr = objects + start;
  6. std::vector<bool> tmp(length);
  7. bool* tmpArr = tmp.data();
  8. forces[f].affected(arr, length, tmpArr);
  9. for(u32 index = 0; index < length; index++)
  10. if (tmp[index])
  11. forces[f].apply(arr[index]);
  12. }
  13. }
  14.  
  15. bool* tmpArr = tmp.data();
Add Comment
Please, Sign In to add comment