collision problem - broadphase pair
Posted: Mon Oct 12, 2020 3:13 pm
Hi everyone,
I have a collision world that contains all the parts of a panel bending machine, there are a lot of parts (one houndred and half parts). I divided them in 14 groups and used masks to filter collisions.
I have a problem with the collisions detection. In a particolar moment i know that two objects are colliding but the collision is not detected.
I think that the problem is in the broadphase, because if i register the filter callback i see that at the beginning the pair of solids that shoud be in collision is not considered. there is no callback for the two objects. Maybe i am misunderstanding something.
I know that broadphase pairs are only added incrementally when I add a new object in the collision world and I had assumed that when I add a new object needBroadphaseCollision would be invoked n times, one for each solid already present in the world. In this way the pair cache is filled only with the pairs that are compatible with groups/masks.
Is it true? is it what shoud i expect?? What can be the problem???
Thank you in advance for any reply.
I have a collision world that contains all the parts of a panel bending machine, there are a lot of parts (one houndred and half parts). I divided them in 14 groups and used masks to filter collisions.
I have a problem with the collisions detection. In a particolar moment i know that two objects are colliding but the collision is not detected.
I think that the problem is in the broadphase, because if i register the filter callback i see that at the beginning the pair of solids that shoud be in collision is not considered. there is no callback for the two objects. Maybe i am misunderstanding something.
I know that broadphase pairs are only added incrementally when I add a new object in the collision world and I had assumed that when I add a new object needBroadphaseCollision would be invoked n times, one for each solid already present in the world. In this way the pair cache is filled only with the pairs that are compatible with groups/masks.
Is it true? is it what shoud i expect?? What can be the problem???
Thank you in advance for any reply.