Phaser API Documentation

  Version: 
enableWrapPlugin()

Description:

Enables the Matter Wrap Plugin.

The coordinate wrapping plugin that automatically wraps the position of bodies such that they always stay within the given bounds. Upon crossing a boundary the body will appear on the opposite side of the bounds, while maintaining its velocity.

https://github.com/liabru/matter-wrap

This method is called automatically if plugins.wrap is set in the Matter World Config. However, you can also call it directly from within your game.

Returns:
Description:

This Matter Physics instance.

Since: 3.0.0