示例#1
0
 public Particle(float x, float y, float mass, float drag, GraphicsWindow pGame)
 {
     game = pGame;
     X    = x;
     Y    = y;
     Mass = mass;
     Drag = drag;
     collisionProperties          = new Level.CollisionSphere(45, Mass);
     collisionProperties.Position = position;
 }
示例#2
0
 public Particle(GraphicsWindow pGame)
 {
     game = pGame;
     X    = game.Width / 2;
     Y    = game.Height / 2;
     Mass = 10;
     Drag = 0;
     collisionProperties          = new Level.CollisionSphere(45, Mass);
     collisionProperties.Position = position;
 }