Matter-js: [question] Do Collision events groups and category affect engine events?

Created on 17 May 2018  路  2Comments  路  Source: liabru/matter-js

I wanted to know how exactly engine event act. In docs there is a function:
Events.on(Engine, "collisionActive", callback)
To listen for collision start, end and when body currently colide but I can't find any information what was checked before providing collision pairs, simply:

Do collision category or group or any other option of body affect collision results in any way ?
or this event just returns all colliding objects and it does not matter if body is sensor or in different collision group/category. Do I have to check it manually?

question

All 2 comments

If the collision filter says two bodies can't collide, there will not be any collision object generated, since those pairs get skipped over before they are checked. So they won't appear in any events, is that what you mean?

Yes, exactly this - thank you for clearing it

Was this page helpful?
0 / 5 - 0 ratings