• Preparing search index...
  • The search index is not available
pixel-perfect
  • pixel-perfect
  • DebrisDetector
  • detect

Function detect

  • detect(bitmap, options?): DebrisInfo[]
  • Identifies every connected component of solid cells that is not anchored, extracts its contour(s), and returns them as DebrisInfos.

    Pure observation: the source bitmap is not modified. Use detectAndRemove to also carve the debris cells out of the static terrain.

    Parameters

    • bitmap: ChunkedBitmap
    • options: DetectOptions = {}

    Returns DebrisInfo[]

    • Defined in src/physics/DebrisDetector.ts:46

Settings

Member Visibility
pixel-perfect
  • Loading...

Generated using TypeDoc