ecspresso
    Preparing search index...

    Function createWrapAtBounds

    • Create a wrapAtBounds component.

      Parameters

      • Optionalpadding: number

        Padding beyond bounds before wrapping

      Returns Pick<BoundsComponentTypes, "wrapAtBounds">

      Component object suitable for spreading into spawn()

      ecs.spawn({
      ...createTransform(100, 200),
      ...createWrapAtBounds(10),
      });