Editor documentation

Method Static

Create a blob with specified params, adding it to the game.

Look at Blob class properties for explanation of all the options passed in here.

Parameters
opts: {
  position: Vector
  size: number
  velocity?: Vector | null
  color?: string
  layer?: number
  category?: string | null
  collidesWith?: string[]
  group?: string | null
  isStatic?: boolean
  isSensor?: boolean
}

Options that define the new blob.

Return value
Blob

Blob reference used to control it after creation.