feat: static physics bodies
This commit is contained in:
parent
75458d331a
commit
31e7f7a26a
|
@ -98,4 +98,12 @@ export class Body extends AbstractBody {
|
|||
});
|
||||
}
|
||||
|
||||
get static() {
|
||||
return this.matterBody.isStatic;
|
||||
}
|
||||
|
||||
set static(isStatic) {
|
||||
MatterBody.setStatic(this.matterBody, isStatic);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user