Phaser API Documentation

  Version: 
body: MatterJS.BodyFactory

Description:

A reference to the Matter.Body module.

The Matter.Body module contains methods for creating and manipulating body models. A Matter.Body is a rigid body that can be simulated by a Matter.Engine. Factories for commonly used body configurations (such as rectangles, circles and other polygons) can be found in the Bodies module.

Type:
MatterJS.BodyFactory
Since: 3.18.0