Guest User

Untitled

a guest
Jul 17th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. for (var i = 1 ; i < collidables.length ; i++) {
  2. if (y < collidables[i].y + collidables[i].z &&
  3. x < collidables[i].x + collidables[i].z &&
  4. x + z > collidables[i].x &&
  5. y + z > collidables[i].y) {
  6. // Handle collision
  7. }
  8. }
Add Comment
Please, Sign In to add comment