I was working on a project where I found it difficult to figure out how to make a Matter Body in matter.js isStatic
false when a key is pressed.
if (keyIsPressed(UP_ARROW)) {
this.body.isStatic(false)
}
Can you tell what is the correct syntax to make a Matter body isStatic
false when a key is pressed?