Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach (Box p in pockets)
- {
- for (int i = balls.Length - 1; i > 0; i--)
- {
- if (balls[i].BoundingSphere.Intersects(p.BoundingBox) && i != 0)
- {
- balls[i].Position = new Vector3(i * 1000, i * 1000, i * 1000);
- balls[i].Velocity = Vector3.Zero;
- trueFalse = true;
- curScore += 1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement