name | type | arguments | Default | description |
---|---|---|---|---|
body | MatterJS.BodyType | <optional> | null |
An existing Matter body to be used instead of creating a new one. |
isStatic | boolean | <optional> | true |
Whether or not the newly created body should be made static. This defaults to true since typically tiles should not be moved. |
addToWorld | boolean | <optional> | true |
Whether or not to add the newly created body (or existing body if options.body is used) to the Matter world. |