This commit is contained in:
kornerr committed 2021-10-05 14:47:12 +03:00
1 parent 4c644ca9ae
commit 5176c6755d
30 files changed
+1201 -13

No files matched your search

+19
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.создать();
}