Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1.                     foreach (Box p in pockets)
  2.                     {
  3.                         for (int i = balls.Length - 1; i > 0; i--)
  4.                         {
  5.                             if (balls[i].BoundingSphere.Intersects(p.BoundingBox) && i != 0)
  6.                             {
  7.                                 balls[i].Position = new Vector3(i * 1000, i * 1000, i * 1000);
  8.                                 balls[i].Velocity = Vector3.Zero;
  9.                                 trueFalse = true;
  10.                                 curScore += 1;
  11.                             }
  12.                         }
  13.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement