Physics Engine
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7MhKAMkQwI9wYnKHf0KFrBfQLiVNH9veTtcj9OUmj0g3wCl8RpD9wLTk4nGBOiQWFJbwlQC6JLfWXQeNK-p1d_v1rpg5PSeK_j2YaPEgAd4aJdGytylItFOVmGFej4F1rbATr9Yt01xi_/w400-h225/maxresdefault.jpg)
Matter.Engine:
The Matter.Engine module contains methods for creating and manipulating engines. An engine is a controller that manages updating the simulation of the world. See Matter.Runner for an optional game loop utility.
Matter.Bodies:
The Matter.Bodies module contains factory methods for creating rigid body models with commonly used body configurations (such as rectangles, circles and other polygons).
Matter.World:
This module has now been replaced by Matter.Composite.
All usage should be migrated to the equivalent functions found on Matter.Composite. For example World.add(world,body) now becomes Composite.add(world,body).
For back-compatibility purposes this module will remain as a direct alias to Matter.Composite in the short term during migration. Eventually this alias module will be marked as deprecated and then later removed in a future release.
Codes:
0 Comments: