Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. targetPosition = bar3pos + targetBarIndex;
  2. safeDown = Math.max(barHeights[targetBarIndex] + currBlockHt, target1Ht);
  3. safeDown = Math.max(safeDown, target2Ht);
  4. safeDown = Math.max(safeDown, maxBarHt);
  5.  
  6. if (currBlockHt == 2) {
  7. targetPosition = bar2pos;
  8. safeDown = Math.max(target2Ht + currBlockHt, target1Ht);
  9. } else if (currBlockHt == 1) {
  10. targetPosition = bar1pos;
  11. safeDown = target1Ht + currBlockHt;
  12. }
  13. while (arm2 > targetPosition)
  14.  
  15. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement