финал M-3.2

This commit is contained in:
2021-09-17 15:03:46 +03:00
parent 6a118d3551
commit 3995c1662c
5 changed files with 38 additions and 18 deletions

View File

@@ -0,0 +1,19 @@
function Физика()
{
this.создать = function()
{
this.движок = Matter.Engine.create({
enableSleeping: true,
gravity: {
y: 2,
},
});
};
this.обновить = function() {
Matter.Engine.update(this.движок);
};
// Конструктор.
this.создать();
}