fix gravity

master
BuildTools 5 years ago
parent f475cb02fe
commit 269a9b4f5d
  1. 2
      Program.cs
  2. 2
      ball.cs

@ -21,7 +21,7 @@ namespace game
cursor.FillColor = Color.Green;
ball_t ball = new ball_t(50f);
ball_t ball2 = new ball_t(50f, new Vector2f(100, 100), new Vector2f(1f, .5f));
ball_t ball2 = new ball_t(25f, new Vector2f(100, 100), new Vector2f(.5f, .5f));
// main loop
while (window.IsOpen)

@ -62,7 +62,7 @@ namespace game
}
public void Run(RenderWindow window)
{
RunPhysics(new Vector2f(0f, 0.000002f * this.shape.Radius));
RunPhysics(new Vector2f(0f, .0001f));
window.Draw(this.shape);
}
}

Loading…
Cancel
Save