-
|
Hi there, I've been trying to set up a box-on-box collision, one for a cube and another for a floor/ground, but have been getting only a single contact when performing collision checking. I used the unit test provided in Running 1 test case...
Num. Collisions: 1
Num. Collisions: 1
Num. Collisions: 0
Num. Collisions: 0My question is: is it expected or intended to only issue a single contact for box-box or am I doing something wrong? Here is the modified version of the code I used to verify: I compiled and built the current version on the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @vastsoun, The |
Beta Was this translation helpful? Give feedback.
Hi @vastsoun,
You can check out #574 to see how to compute multiple contact points.
More processing is required to go from collision detection (computing the contact normal and a pair of contact points) to contact surface computation (computing multiple pairs of contact points that all share the same contact normal). Therefore, the contact surface computation uses the
computeContactPatchfunction.The
num_max_contactsparameter in theCollisionRequestis the maximum number of contact normals thatcollidecan compute. Since primitives are convex in hpp-fcl (box, sphere, ellipsoid, cones, convex meshes etc.), there is only one normal per call tocollide.The
num_max_contactsis therefore on…