In Matter.js, you can control the behavior of multiple bodies or the whole world at once. The Body module contains a lot of methods and properties to let you specify values for all kinds of physical attributes, from mass to coefficient of restitution. In this tutorial, you will learn about all these methods and Properties and how to use them properly.
Table of contents
Scaling, Rotating and Translating a BodySetting Velocities and Applying ForcesControl the Rendering of BodiesChanging Physical PropertiesConclusion1 Comment
Sort: