| Parameter | Description |
|---|---|
| shapes | The shapes to set the contact filter on. |
| filters | The contact filters to set, one entry per shape. |
int The number of shapes that were ignored (not set because the shape was invalid). A single warning is logged when any are ignored. If the spans are different lengths, nothing is set and every shape is counted as ignored.
Set the ContactFilter on a batch of shapes. The shapes and filters spans must be the same length; shapes[n] receives filters[n].
| Parameter | Description |
|---|---|
| shapes | The shapes to set the contact filter on. |
| contactFilter | The contact filter to set on every shape. |
int The number of shapes that were ignored (not set because the shape was invalid). A single warning is logged when any are ignored.
Set the same ContactFilter on a batch of shapes.