Example to set margin for collision detection #1697
-
I notice that there is an interface |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I haven't checked the code but it looks straightforward to me: |
Beta Was this translation helpful? Give feedback.
I haven't checked the code but it looks straightforward to me:
It is a matrix whose row and column index correspond to geometry index and whose values correspond to the security margin to be used for the corresponding pair of geometries.
Since the tuples (i,j) and (j,i) represent the same pair of geometries, the matrix should be symmetrical. To avoid having to set both values, you can set only the upper or lower part of the matrix and set the boolean argument accordingly.