Updates the 4 rectangle bodies that were created, if setBounds
was set in the Matter config, to use
the new positions and sizes. This method is usually only called internally via the setBounds
method.
name | type | arguments | description |
---|---|---|---|
add | boolean |
|
|
position | string | <optional> |
Either |
x | number | <optional> |
The horizontal position to place the walls at. Only optional if |
y | number | <optional> |
The vertical position to place the walls at. Only optional if |
width | number | <optional> |
The width of the walls, in pixels. Only optional if |
height | number | <optional> |
The height of the walls, in pixels. Only optional if |