During my recent project, I encountered a challenge in trying to set the isStatic
property of a Matter Body in matter.js to false when a key is pressed.
if (keyIsPressed(UP_ARROW)) {
this.body.isStatic(false)
}
Could you provide guidance on the correct syntax for making a Matter body's isStatic
property false upon key press?