feat: static physics bodies

This commit is contained in:
cha0s 2019-03-27 23:21:13 -05:00
parent 75458d331a
commit 31e7f7a26a

View File

@ -98,4 +98,12 @@ export class Body extends AbstractBody {
});
}
get static() {
return this.matterBody.isStatic;
}
set static(isStatic) {
MatterBody.setStatic(this.matterBody, isStatic);
}
}