summaryrefslogtreecommitdiff
path: root/physics/Model.cs
diff options
context:
space:
mode:
Diffstat (limited to 'physics/Model.cs')
-rw-r--r--physics/Model.cs45
1 files changed, 0 insertions, 45 deletions
diff --git a/physics/Model.cs b/physics/Model.cs
index 29a656f..550e3d8 100644
--- a/physics/Model.cs
+++ b/physics/Model.cs
@@ -177,51 +177,6 @@ namespace PhysModel
}
}
- public class Particle
- {
- public Vector Force;
-
- public Point Position;
- public Point PreviousPosition;
- public Vector Velocity;
-
- public double Mass;
- public double Theta;
-
- /*
- public Particle (Point position, double mass)
- {
- this.Position = position;
- this.PreviousPosition = position;
- this.Mass = mass;
- }
- */
-
- public double GetDistance (Point p)
- {
- Vector d = Position - p;
- return Math.Sqrt (d.X*d.X + d.Y*d.Y);
- }
-
- public void AccumulateForces (Model Model)
- {
- //Gravity
- Force = Model.Gravity * Mass;
-
- //Friction
- Vector v = Position - PreviousPosition;
-
- Force -= v * Model.Friction;
- }
-
- public void Integrate (double step)
- {
- Point original_position = Position;
- Position += Position - PreviousPosition + Force * step * step;
- PreviousPosition = original_position;
- }
- }
-
public class Stick
{
public Particle A;