Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void execute() {
- for (u32 f = 0; f < numForces; f++)
- {
- u32 length = end - start;
- PhysicalObject* arr = objects + start;
- std::vector<bool> tmp(length);
- bool* tmpArr = tmp.data();
- forces[f].affected(arr, length, tmpArr);
- for(u32 index = 0; index < length; index++)
- if (tmp[index])
- forces[f].apply(arr[index]);
- }
- }
- bool* tmpArr = tmp.data();
Add Comment
Please, Sign In to add comment