In the following simple demo I create a matter image and set it to isStatic
. As soon as I call setCircle()
is falls through the air. Is this not possible? I would like to have a bunch of circular static objects…
For future reference I was able to solve this by explicitly calling setIgnoreGravity()
and setStatic()
. I’d still like to know if this is a bug or expected behavior…
It looks like setCircle
recreates the body, which destroys the existing options. You should be able to work around this by declaring the body as a static circle when you create it (you can pass in a shape
, which doesn’t appear to be documented).
I don’t really work with Matter, so don’t quote me on any of this.
Thanks @Telinc1, that makes sense. I’ll check out the shape
option.
1 Like