Advertisement
SupremeBogus

zzz

Aug 28th, 2011
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. public override void CollisionCheckerThingy(Bullet b)
  2. {
  3.     Vector2 temp = Position - b.Position;
  4.         if (temp.LengthSquared() < (PLAYER_RADIUS + b.BULLET_RADIUS) * (PLAYER_RADIUS + b.BULLET_RADIUS))
  5.     {
  6.         UpdatePichuun();
  7.                 b.BULLET_ID = -1;
  8.         return;
  9.     }
  10.     else
  11.         {
  12.         return;
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement