ecspresso
    Preparing search index...

    Function createDestroyOutOfBounds

    • Create a destroyOutOfBounds component.

      Parameters

      • Optionalpadding: number

        Extra padding beyond bounds before destruction

      Returns Pick<BoundsComponentTypes, "destroyOutOfBounds">

      Component object suitable for spreading into spawn()

      ecs.spawn({
      ...createTransform(100, 200),
      ...createDestroyOutOfBounds(20),
      });