   .c 'blob',
     velX: velX + entBlob.velX
     velY: velY + entBlob.velY
-    parent: @entity.id
-    parentTime: 20000
+    group: @entity.c('blob').group
+    parent: parent.id
     weightCap: weight
     weight: 1
   .c 'render', @entity.c 'render'
   entBlob.weightCap = weight
   entBlob.velX = -velX
   entBlob.velY = -velY
+  groups[@entity.c('blob').group] = 20000
   @result = newEntity.id
 
 module.exports = 

Action = require('ecstasy').Action
QuadTree = require('simple-quadtree')

class BlobComponent
  constructor: ({@velX, @velY, @parent, @parentTime, @weight, @weightCap, @invincible}) ->
    @velX ?= 0
    @velY ?= 0
    @weight ?= 0.15

square = (x) -> x * x


        return if other == entity
        [otherPos, otherBlob] = [other.c('pos'), other.c('blob')]
        return if otherBlob.weightCap
        if entBlob.group == otherBlob.group
          if groups[entBlob.group]
            pushOther entity, other if entPos.collides otherPos
            return
        return if otherBlob.weight <= 0.1
        return if entBlob.invincible
        return if otherBlob.invincible
