I’m trying to change the filter criteria for collision in real time without success. First, I create a object without defining the filter. Then in a specific situation, I want to apply the filter cirteria and the code is below:
objectCollisionFilter = { categoryBits = 4, maskBits = 3 }
physics.addBody(event.other, “dynamic”, {bounce=1, friction = 0.3, density = 0.5, filter=objectCollisionFilter})
But it seem that the filter criteria does not work.
So pls help me to change the filter of object.
Thks. [import]uid: 111174 topic_id: 19885 reply_id: 319885[/import]