Guest User

Untitled

a guest
Jul 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. function testCollision(v, index) {
  2. if (test(p.x, p.y, p.breath, p.length, v.x, v.y, v.radius)) {
  3. ball.splice(index, 1);
  4. n--;
  5. //splice starts deleting the elements of array from the index given in the first parameter
  6. // and the second parameter accepts the no. of array elements to be deleted
  7. }
  8. }
Add Comment
Please, Sign In to add comment