protected PhysicalBody(Material material, Point velocity, bool isStatic, ConvexPolygon shape) { if (shape == null) { Mass = 0; } else if (isStatic) { Mass = double.PositiveInfinity; } else { Mass = shape.GetArea() * material.density; } Material = material; Acceleration = new Point(0, 0); Velocity = velocity; IsStatic = isStatic; Shape = shape; }