 BlobSplitAction = Action.scaffold (engine) ->
   entPos = @entity.c 'pos'
   entBlob = @entity.c 'blob'
+  entBlob.weight = entBlob.weightCap if entBlob.weightCap
   weight = entBlob.weight / 2
   direction = Math.random() * Math.PI * 2
   vel = 3 * Math.sqrt weight


square = (x) -> x * x

BlobSystem =
  priority: 1500
  onAddedToEngine: (engine) ->

  update: (delta) ->
    for entity, i in @entities
      [entPos, entBlob] = [entity.c('pos'), entity.c('blob')]
      continue if entBlob.weight <= 0.1
      entPos.x += entBlob.velX / 1000 * delta
      entPos.y += entBlob.velY / 1000 * delta
      entBlob.velX *= Math.pow 0.994, 1 / 32 * delta
