Only call filter and modify_contacts methods if needed. This should improve performance. Eg. filter is only needed if we have exclude_bodies. modify_contacts is only needed for case we have a static body that acts as a conveyer belt or for shapes with one way direction.
Only call filter and modify_contacts methods if needed. This should improve performance. Eg. filter is only needed if we have exclude_bodies. modify_contacts is only needed for case we have a static body that acts as a conveyer belt or for shapes with one way direction.